void (@NotNull PsiClass aClass) { if (aClass instanceof PsiTypeParameter) { return; } int numLoggers = 0; for (PsiField field : aClass.getFields()) { if (isLogger(field)) { numLoggers++; } } if (numLoggers <= 1) { return; } registerClassError(aClass); }