code: public ResourceList filter(final ResourceFilter filter) {
          final ResourceList resourcesFiltered = new ResourceList();
          for (final Resource resource : this) {
              if (filter.accept(resource)) {
                  resourcesFiltered.add(resource);
              }
          }
          return resourcesFiltered;
      }
docs: Find the subset of the {@link Resource} objects in this list for which the given filter predicate is true.
  
  @param filter
  The {@link ResourceFilter} to apply.
  @return The subset of the {@link Resource} objects in this list for which the given filter predicate is true.