@Override
  public void update(@NotNull AnActionEvent e) {
    super.update(e);
    Provider provider = getProvider(e);
    Presentation presentation = e.getPresentation();
    presentation.setEnabled(provider != null);
    if (provider != null) {
      presentation.setText(provider.getActionName(e));
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)