static Set filterSet(Iterable c, IPred pred) { Set x = similarEmptySetOrLinkedHashSet(c); if (c != null) for (A o : c) if (pred.get(o)) x.add(o); ret x; } static Set lambdaMapLike filterSet(IPred pred, Iterable c) { ret filterSet(c, pred); }