code: public static <InnerT> PagedList<InnerT> convertToPagedList(List<InnerT> list) {
          PageImpl<InnerT> page = new PageImpl<>();
          page.setItems(list);
          page.setNextPageLink(null);
          return new PagedList<InnerT>(page) {
              @Override
              public Page<InnerT> nextPage(String nextPageLink) {
                  return null;
              }
          };
      }
docs: Converts the List to PagedList.
  @param list list to be converted in to paged list
  @param <InnerT> the wrapper inner type
  @return the Paged list for the inner type.