static Map consequentsMap(Collection c) { ret consequentsMap(new Map, c); } static Map consequentsMap(Map map, Iterable c) { A last = null; for (A a : unnull(c)) { if (last != null && a != null) { map.put(last, a); last = a; } } ret map; }