private static void validateExistingMethods(@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();
    }
  }
private static void validateExistingMethods(@NotNull PsiClass psiClass, @NotNull ProblemSink builder)