class PagedList extends ArrayList<HttpResponse<T>> {

    public PagedList<T> ifSuccess(Consumer<HttpResponse<T>> consumer) {
        stream().filter(HttpResponse::isSuccess).forEach(consumer);
        return this;
    }

}