static Set asOrderedSet(Iterable l) { if (l cast LinkedHashSet) ret l; new LinkedHashSet set; for (A o : unnull(l)) set.add(o); ret set; }