void (final RepositoryTreeNode node) { TreeNode nodeToSelect = myParentNode.getNextChildByKey(myDeletedNodeName, myIsFolder); nodeToSelect = (nodeToSelect == null) ? myParentNode : nodeToSelect; myBrowserComponent.setSelectedNode(nodeToSelect); }