static L mergeConceptLists(Collection l1, Collection l2) { new HashSet ids; new L out; for unnull (A a : l1) if (ids.add(a.id)) out.add(a); for unnull (A a : l2) if (ids.add(a.id)) out.add(a); ret out; }