DefaultActionGroup () { final DefaultActionGroup toolbarActionGroup = new DefaultActionGroup(); final List<AnAction> createActions = new ArrayList<>(createNewElementActions()); for (AnAction createAction : createActions) { toolbarActionGroup.add(createAction); } toolbarActionGroup.add(new RemovePackagingElementAction(this)); toolbarActionGroup.add(Separator.getInstance()); toolbarActionGroup.add(new SortElementsToggleAction(this.getLayoutTreeComponent())); toolbarActionGroup.add(new MovePackagingElementAction(myLayoutTreeComponent, UIBundle.message("move.up.action.name"), "", IconUtil.getMoveUpIcon(), -1)); toolbarActionGroup.add(new MovePackagingElementAction(myLayoutTreeComponent, UIBundle.message("move.down.action.name"), "", IconUtil.getMoveDownIcon(), 1)); return toolbarActionGroup; }