void (@NotNull AbstractProjectViewPane pane) { if (actionGroup == null) return; actionGroup.removeAll(); DefaultActionGroup group = (DefaultActionGroup)ActionManager.getInstance().getAction("ProjectView.ToolWindow.SecondaryActions"); for (AnAction action : group.getChildActionsOrStubs()) { actionGroup.addAction(action).setAsSecondary(true); } pane.addToolbarActions(actionGroup); }