private static int requiredParametersCount(@NotNull PyCallable callable, @NotNull List<PyCallableParameter> parameters) {
    return namedParametersCount(parameters) - optionalParametersCount(parameters) - specialParametersCount(callable, parameters);
  }
private static int requiredParametersCount(@NotNull PyCallable callable, @NotNull List<PyCallableParameter> parameters)