boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @NotNull ProblemSink builder) { boolean result = true; if (psiClass.isInterface() || psiClass.isAnnotationType()) { builder.addErrorMessage("inspection.message.s.legal.only.on.classes.enums", getSupportedAnnotationClasses()[0]); result = false; } if (result) { final String loggerName = getLoggerName(psiClass); if (hasFieldByName(psiClass, loggerName)) { builder.addErrorMessage("inspection.message.not.generating.field.s.field.with.same.name.already.exists", loggerName); result = false; } } return result; }