List<AnAction> (@NotNull TreeExpander treeExpander) { List<AnAction> actions = new ArrayList<>(); actions.add(CustomActionsSchema.getInstance().getCorrectedAction(ActionPlaces.CHANGES_VIEW_TOOLBAR)); if (!ExperimentalUI.isNewUI()) { actions.add(Separator.getInstance()); } DefaultActionGroup viewOptionsGroup = DefaultActionGroup.createPopupGroup(() -> VcsBundle.message("action.ChangesViewToolWindowPanel.text")); viewOptionsGroup.getTemplatePresentation().setIcon(AllIcons.Actions.Show); viewOptionsGroup.add(ActionManager.getInstance().getAction(GROUP_BY_ACTION_GROUP)); viewOptionsGroup.add(new Separator(VcsBundle.message("action.vcs.log.show.separator"))); viewOptionsGroup.add(new ToggleShowIgnoredAction()); viewOptionsGroup.add(ActionManager.getInstance().getAction("ChangesView.ViewOptions")); actions.add(viewOptionsGroup); actions.add(CommonActionsManager.getInstance().createExpandAllHeaderAction(treeExpander, myView)); actions.add(CommonActionsManager.getInstance().createCollapseAllAction(treeExpander, myView)); actions.add(Separator.getInstance()); actions.add(ActionManager.getInstance().getAction("ChangesView.SingleClickPreview")); return actions; }