static MultiMap reverseMapAsMultiMap(Map map) { new MultiMap mm; for (A key : keys(map)) mm.put(map.get(key), key); ret mm; }