void (@NotNull PsiClass aClass) { if (aClass.isInterface() || aClass.isEnum() || aClass.isAnnotationType()) { return; } if (aClass instanceof PsiTypeParameter) { return; } if (aClass.getContainingClass() != null) { return; } final PsiField[] fields = aClass.getFields(); for (final PsiField field : fields) { if (!isLogger(field)) { continue; } if (field.hasModifierProperty(PsiModifier.STATIC) && field.hasModifierProperty(PsiModifier.FINAL)) { continue; } registerFieldError(field, field); } }