@Override
  public void update(@NotNull AnActionEvent e) {
    EditorEx editor = getEditor(e);
    if (editor == null || editor.isOneLineMode()) {
      e.getPresentation().setEnabledAndVisible(false);
    }
    else {
      e.getPresentation().setEnabledAndVisible(true);
      super.update(e);
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)