static L> pairList_lookupAnySide(Collection> l, A a) { new L> out; for (Pair p : unnull(l)) if (eq(p.a, a) || eq(p.b, a)) out.add(p); ret out; }