static Map minimalNotifyingMap(Map map, Runnable notify) { ret new AbstractMap() { public Set> entrySet() { unimplemented(); } public B put(A a, A b) { map.put(a, b); pcallF(notify); } }; }