@Override
  public void update(@NotNull final AnActionEvent e) {
    final boolean enabled = e.getData(CommonDataKeys.PROJECT) != null;
    e.getPresentation().setEnabled(enabled);

    // see RIDER-15982
    if (!ActionPlaces.isMainMenuOrActionSearch(e.getPlace())) {
      e.getPresentation().setText(messagePointer("action.ShowNavBar.ShortText"));
    }
  }
@Override
  public void update(@NotNull final AnActionEvent e)