Boolean (@NotNull PsiClassType classType) { if (classType.getParameters().length > 0) { return PsiTypesUtil.classNameEquals(classType, CommonClassNames.JAVA_LANG_CLASS); } PsiClass aClass = classType.resolve(); if (aClass != null && (aClass.isAnnotationType() || aClass.isEnum())) { return Boolean.TRUE; } return classType.equalsToText(CommonClassNames.JAVA_LANG_CLASS) || classType.equalsToText(CommonClassNames.JAVA_LANG_STRING); }