@Override
  public void update(@NotNull AnActionEvent event) {
    Presentation presentation = event.getPresentation();
    CopyAction.updateWithProvider(event, event.getData(PlatformDataKeys.COPY_PROVIDER), false, provider -> {
      presentation.setEnabledAndVisible(provider != null &&
                                        provider.isCopyEnabled(event.getDataContext()) &&
                                        provider.isCopyVisible(event.getDataContext()));
    });
  }
@Override
  public void update(@NotNull AnActionEvent event)