void (@NotNull Wrapper change) { if (change instanceof ShelvedWrapper) { DefaultMutableTreeNode root = myTree.getRoot(); DefaultMutableTreeNode changelistNode = TreeUtil.findNodeWithObject(root, ((ShelvedWrapper)change).getChangeList()); if (changelistNode == null) return; DefaultMutableTreeNode node = TreeUtil.findNodeWithObject(changelistNode, change); if (node == null) return; TreeUtil.selectPath(myTree, TreeUtil.getPathFromRoot(node), false); } }