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