ActionToolbar () { final AnAction[] viewActions = createViewActionGroup().getChildren(null); final ActionGroup viewActionsGroup = new ConditionalActionGroup(viewActions, () -> !isShowActionsInTabs()); final ActionGroup group = createRightToolbarActionGroup(); final ActionGroup rightToolbarActions = group == null ? viewActionsGroup : new DefaultActionGroup(group, Separator.create(), viewActionsGroup); return ActionManager.getInstance().createActionToolbar(TEXT_EDITOR_WITH_PREVIEW, rightToolbarActions, true); }