@Override
  public void update(@NotNull AnActionEvent e) {
    final Editor editor = e.getData(CommonDataKeys.EDITOR);

    final boolean enabled = e.getData(LangDataKeys.CONSOLE_VIEW) != null && editor != null && getSingleLineSelection(editor) != null;
    e.getPresentation().setEnabledAndVisible(enabled);
  }
@Override
  public void update(@NotNull AnActionEvent e)