void (final SvnFileRevision revision, final MyNode node, final List<TreePath> nodesToExpand) { final MyNode current = new MyNode(new MyNamedConfigurable(revision, myFile, myProject, myListsMap)); node.add(current); final TreeNode[] path = ((DefaultTreeModel)myTree.getModel()).getPathToRoot(node); nodesToExpand.add(new TreePath(path)); final List<SvnFileRevision> mergeSources = revision.getMergeSources(); for (SvnFileRevision source : mergeSources) { addRecursively(source, current, nodesToExpand); } }