private static boolean dissimilarPrimitiveTypeWrappers(Type trueExprType, Type falseExprType) { return isPrimitiveWrapper(trueExprType) && isPrimitiveWrapper(falseExprType) && !trueExprType.equals(falseExprType); }
private boolean instantiateOwnClass(Tree identifier, Symbol.TypeSymbol newClassTypeSymbol) { Type enclosingClassType = getSemanticModel().getEnclosingClass(identifier).type(); return enclosingClassType.equals(newClassTypeSymbol.type()); }