EmptyAction.setupAction(this, actionId, null);
}
public void update(AnActionEvent e) {
EditorEx editor = console.getConsoleEditor();
Lookup lookup = LookupManager.getActiveLookup(editor);
e.getPresentation().setEnabled(!processHandler.isProcessTerminated() &&
(lookup == null || !lookup.isCompletion()));
}