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