static L flattenPairs(Collection> l) { new L out; for (Pair p: unnull(l)) { out.add(p.a); out.add(p.b); } ret out; }