TextAttributes (@NotNull PsiClass aClass) { if (aClass.isInterface()) return getInterfaceNameAttributes(); if (aClass.isEnum()) return getEnumNameAttributes(); if (aClass instanceof PsiAnonymousClass) return getAnonymousClassNameAttributes(); if (aClass.hasModifierProperty(PsiModifier.ABSTRACT)) return getAbstractClassNameAttributes(); return getClassNameAttributes(); }