void () { ThreadingAssertions.assertEventDispatchThread(); UsageNode node = myUsageNodes.get(myUsage); if (node == NULL_NODE || node == null) { return; } DefaultMutableTreeNode parentGroupingNode = (DefaultMutableTreeNode)node.getParent(); if (parentGroupingNode != null) { TreePath treePath = new TreePath(parentGroupingNode.getPath()); myTree.expandPath(treePath); if (mySelected) { myTree.addSelectionPath(treePath.pathByAddingChild(node)); } } }