static Set setIntersection(Set a, Set b) { Set set = similarEmptySet(a); for (A x : a) if (b.contains(x)) set.add(x); ret set; }