void (@NotNull PsiClass psiClass, @NotNull ProblemSink builder) { final boolean methodAlreadyExists = hasToStringMethodDefined(psiClass); if (methodAlreadyExists) { builder.addWarningMessage("inspection.message.not.generated.s.method.with.same.name.already.exists", TO_STRING_METHOD_NAME); builder.markFailed(); } }