List<AnAction> (@Nullable JComponent component) { JBIterable<ActionToolbar> toolbars = UIUtil.uiTraverser(component).traverse().filter(ActionToolbar.class); if (toolbars.size() == 0) { return Collections.emptyList(); } return toolbars.flatten(ActionToolbar::getActions).toList(); }