static Map setToSelfMap(Set set) { Map map = similarEmptyMap(set); fOr (A a : set) map.put(a, a); ret map; }