public static boolean hasSimilarMethod(@NotNull Collection<PsiMethod> classMethods, @NotNull String methodName, int paramCount) {
    return classMethods.stream()
      .filter(m -> methodName.equalsIgnoreCase(m.getName()))
      .anyMatch(m -> acceptedParameterCount(m, paramCount));
  }
public static boolean hasSimilarMethod(@NotNull Collection<PsiMethod> classMethods, @NotNull String methodName, int paramCount)