static Set setWithNotify(final Runnable onChange) { ret setWithNotify(new HashSet, onChange); } static Set setWithNotify(Set set, final Runnable onChange) { ret new NotifyingSet(set) { void change() { onChange.run(); } }; }