class PagedList extends ArrayList<HttpResponse<T>> {

    public List<T> getBodies() {
        return stream()
                .filter(HttpResponse::isSuccess)
                .map(HttpResponse::getBody)
                .collect(Collectors.toList());
    }

}