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