void (@NotNull AnActionEvent e) { List<TreePath> expandedPaths = TreeUtil.collectExpandedPaths(myActionsTree); removePaths(myActionsTree.getSelectionPaths()); TreeUtil.restoreExpandedPaths(myActionsTree, expandedPaths); }