static bool listAndSetIntersect(Iterable a, Collection b) { Set bSet = asSet(b); for (A x : unnull(a)) if (bSet.contains(x)) true; false; }