boolean (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { boolean result = true; if (psiClass.isAnnotationType() || psiClass.isInterface()) { builder.addErrorMessage("inspection.message.annotation.only.supported.on.class.or.enum.type"); result = false; } return result; }