code: public Optional<String> getMajorUrlParameter() {
          if (customMajorParam != null) {
              return Optional.of(customMajorParam);
          }
          Optional<Integer> majorParameterPosition = endpoint.getMajorParameterPosition();
          if (!majorParameterPosition.isPresent()) {
              return Optional.empty();
          }
          if (majorParameterPosition.get() >= urlParameters.length) {
              return Optional.empty();
          }
          return Optional.of(urlParameters[majorParameterPosition.get()]);
      }
docs: Gets the major url parameter of this request.
  If an request has a major parameter, it means that the ratelimits for this request are based on this parameter.
  
  @return The major url parameter used for ratelimits.