static int countNotContainedIn(Iterable l, final Set set) { int n = 0; if (l != null) for (A a : l) if (!contains(set, a)) ++n; ret n; }