static bool setAddAllQuick(L a, Collection b) { HashSet index = new HashSet(a); bool change = false; for (A x : b) if (!index.contains(x)) { l.add(x); index.add(x); change = true; } ret change; }