void () { myBlockTree.removeAll(); if (myTreeModel != null) { Disposer.dispose(myTreeModelDisposable); myTreeModel = null; myTreeModelDisposable = Disposer.newDisposable(); } myPsiToBlockMap = null; ViewerPsiBasedTree.removeListenerOfClass(myBlockTree, BlockTreeSelectionListener.class); }