void (final XDebuggerTreeState treeState) { Object rootNode = myTreeModel.getRoot(); if (rootNode instanceof XDebuggerTreeNode) { ((XDebuggerTreeNode)rootNode).clearChildren(); if (isRootVisible() && rootNode instanceof XValueNodeImpl) { ((XValueNodeImpl)rootNode).getValueContainer().computePresentation((XValueNode)rootNode, XValuePlace.TREE); } treeState.restoreState(this); repaint(); } }