void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { if (hasOneOfMethodsDefined(psiClass)) { builder.addWarningMessage("inspection.message.not.generating.equals.hashcode"); builder.markFailed(); } }