static L uniquifyList(Collection l) { new HashSet set; new L out; for (A a : unnull(l)) if (set.add(a)) out.add(a); ret out; }