void (@Nullable ActionGroup actionGroup) { if (actionGroup instanceof DefaultActionGroup) { myConsoleToolbarActionGroup.copyFromGroup((DefaultActionGroup)actionGroup); } else if (actionGroup != null) { myConsoleToolbarActionGroup.copyFrom(actionGroup); } else { myConsoleToolbarActionGroup.removeAll(); } updateToolbarActionsImmediately(); }