void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (psiClass.isAnnotationType() || psiClass.isInterface()) { builder.addErrorMessage("inspection.message.getter.only.supported.on.class.enum.or.field.type"); builder.markFailed(); } }