ToolbarDecorator (@NotNull ActionGroup actionGroup) { AnAction[] actions = actionGroup.getChildren(null); for (AnAction action : actions) { if (!(action instanceof Separator)) { addExtraAction(AnActionButton.fromAction(action)); } } return this; }