static DoubleKeyedMap pairKeyMapToDoubleKeyedMap(Map, C> map) { new DoubleKeyedMap out; fOr (Pair p, C c : map) out.put(p, c); ret out; }