void (boolean selected) { myState.myCommandQueueEnabled = selected; if (!selected) { ApplicationManager.getApplication().getService(CommandQueueForPythonConsoleService.class).disableCommandQueue(); } }