boolean (@NotNull PsiType type) { if (type instanceof PsiPrimitiveType) return true; if (!(type instanceof PsiClassType)) return false; PsiClass aClass = ((PsiClassType)type).resolve(); Collection<String> boxedPrimitiveTypes = JvmPrimitiveTypeKind.getBoxedFqns(); return aClass != null && boxedPrimitiveTypes.contains(aClass.getQualifiedName()); }