boolean (@NotNull PsiType type) { if (TypeConversionUtil.getTypeRank(type) <= TypeConversionUtil.INT_RANK) return false; if (TypeConversionUtil.isPrimitiveAndNotNull(type)) return false; PsiClass psiClass = PsiUtil.resolveClassInClassTypeOnly(type); if (psiClass != null) { if (psiClass.isEnum()) return false; String fqn = psiClass.getQualifiedName(); if (Comparing.strEqual(fqn, CommonClassNames.JAVA_LANG_STRING)) return false; } return true; }