void (@NotNull AnActionEvent e) { JTree tree = ComponentUtil.getParentOfType((Class<? extends JTree>)JTree.class, e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT)); if (tree != null) { TreeUtil.expandAll(tree); } }