class CopyOnWriteWeakSet extends WeakSet<T> {

	@Override
	public synchronized void add(T t) {
		maybeWarnAboutAnonymousValue(t);
		weakHashStorage = new WeakHashMap<>(weakHashStorage);
		weakHashStorage.put(t, null);
	}

	  CopyOnWriteWeakSet();

}