static int nIntersectionListSet(Collection l, Set set) { if (set == null) ret 0; int n = 0; for (A a : unnull(l)) if (set.contains(a)) ++n; ret n; }