myExpectedType = getClassType(expectedType, expression);
myPrimitiveExpected = expectedType instanceof PsiPrimitiveType;
}
@Nullable
private static PsiClassType getClassType(PsiType type, PsiElement place) {
<BUG>return (PsiClassType)(type instanceof PsiClassType ?
type : ((PsiPrimitiveType)type).getBoxedType(place.getManager(), GlobalSearchScope.allScope(place.getProject())));

}</BUG>
@NotNull

myExpectedType = getClassType(expectedType, expression);
myPrimitiveExpected = expectedType instanceof PsiPrimitiveType;
}
@Nullable
private static PsiClassType getClassType(PsiType type, PsiElement place) {
if (type instanceof PsiClassType) {
return (PsiClassType)type;
}
else if (type instanceof PsiPrimitiveType){
return ((PsiPrimitiveType)type).getBoxedType(place.getManager(), GlobalSearchScope.allScope(place.getProject()));
}
return null;
}
@NotNull
