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