void (@NotNull AnActionEvent e) { Editor editor = consoleView.getConsoleEditor(); if (LookupManager.getActiveLookup(editor) != null) { AnAction replace = ActionManager.getInstance().getAction(IdeActions.ACTION_CHOOSE_LOOKUP_ITEM_REPLACE); ActionUtil.performActionDumbAwareWithCallbacks(replace, e); return; } AnAction completionAction = ActionManager.getInstance().getAction(IdeActions.ACTION_CODE_COMPLETION); if (completionAction != null) { ActionUtil.performActionDumbAwareWithCallbacks(completionAction, e); } }