static A firstContainedInSet(Iterable l, Set set) { if (l == null || empty(set)) null; for (A a : l) if (set.contains(a)) ret a; null; }