code: public List<GitlabProject> getProjectsViaSudoWithPagination(GitlabUser user, Pagination pagination) throws IOException {
          StringBuilder tailUrl = new StringBuilder(GitlabProject.URL);
  
          Query query = new Query()
                  .appendIf(PARAM_SUDO, user.getId());
  
          if (pagination != null) {
              query.mergeWith(pagination.asQuery());
          }
  
          tailUrl.append(query.toString());
          return Arrays.asList(retrieve().method(GET).to(tailUrl.toString(), GitlabProject[].class));
      }
docs: Get a list of projects of with Pagination.
  
  @param user       Gitlab User to invoke sudo with
  @param pagination
  @return A list of gitlab projects
  @throws IOException Gitlab API call error