void (@NotNull Object element, @Nullable Runnable onDone) { runDone(new TreeRunnable("AbstractTreeUi.collapseChildren") { @Override public void perform() { DefaultMutableTreeNode node = getNodeForElement(element, false); if (node != null) { getTree().collapsePath(new TreePath(node.getPath())); runDone(onDone); } } }); }