code: public List<GitlabProject> getProjectsWithPagination(Pagination pagination) throws IOException {
          StringBuilder tailUrl = new StringBuilder(GitlabProject.URL);
  
          if (pagination != null) {
              Query query = pagination.asQuery();
              tailUrl.append(query.toString());
          }
  
          return Arrays.asList(retrieve().method(GET).to(tailUrl.toString(), GitlabProject[].class));
      }
docs: Get a list of projects by pagination accessible by the authenticated user.
  
  @param pagination
  @return
  @throws IOException on gitlab api call error