code: public static final <T> T orElseThrow(Optional<T> optional) throws GitLabApiException {
  
          GitLabApiException glea = getOptionalException(optional);
          if (glea != null) {
              throw (glea);
          }
  
          return (optional.get());
      }
docs: Return the Optional instances contained value, if present, otherwise throw the exception that is
  associated with the Optional instance.
  
  @param <T> the type for the Optional parameter
  @param optional the Optional instance to get the value for
  @return the value of the Optional instance if no exception is associated with it
  @throws GitLabApiException if there was an exception associated with the Optional instance