void () { Disposer.register(myRoot, myFolder1); Disposer.register(myRoot, myFolder2); Disposer.register(myFolder1, myLeaf1); Disposer.dispose(myFolder1); assertFalse(myRoot.isDisposed()); assertDisposed(myFolder1); assertDisposed(myLeaf1); assertFalse(myFolder2.isDisposed()); Disposer.dispose(myRoot); assertDisposed(myRoot); assertDisposed(myFolder2); Disposer.dispose(myLeaf1); }