void (@NotNull final AnActionEvent e) { final Set<PsiFile> selectedScope = getSelectedScope(myLeftTree); exclude(selectedScope); myExcluded.addAll(selectedScope); final TreePath[] paths = myLeftTree.getSelectionPaths(); assert paths != null; for (TreePath path : paths) { TreeUtil.removeLastPathComponent(myLeftTree, path); } }