static L mapMethodLike filterByMethod(Collection c, S method) { new L l; for (A x : c) if (booleanValue(call(x, method))) l.add(x); ret l; } static L mapMethodLike filterByMethod(S method, Collection c) { ret filterByMethod(c, method); }