@Override
  public void update(@NotNull AnActionEvent e) {
    String selected = e.getData(DocumentationManager.SELECTED_QUICK_DOC_TEXT);
    e.getPresentation().setEnabledAndVisible(selected != null && !selected.isEmpty());
  }
@Override
  public void update(@NotNull AnActionEvent e)