static Map reverseKeys(Map map) { new LinkedHashMap map2; for (A a : reversed(keys(map))) map2.put(a, map.get(a)); ret map2; }