void (boolean removeCommand) { if (myCommandQueue != null) { ApplicationManager.getApplication().invokeLater(() -> Disposer.dispose(myCommandQueue)); } if (removeCommand) { ApplicationManager.getApplication().getService(CommandQueueForPythonConsoleService.class) .removeCommand(myRunner.getPydevConsoleCommunication(), true); } }