static bool containsOneOf(Collection l, A... x) { for (A a : unnull(l)) if (eqOneOf(a, x)) true; false; } static bool containsOneOf(Collection l, Set set) { if (set == null) false; for (A a : unnull(l)) if (set.contains(a)) true; false; }