Collection<MethodRepr> (final Predicate<? super MethodRepr> p) { final Collection<MethodRepr> result = new LinkedList<>(); for (MethodRepr mm : myMethods) { if (p.test(mm)) { result.add(mm); } } return result; }