@Override
  public void update(@NotNull AnActionEvent event) {
    updateWithProvider(event, event.getData(PlatformDataKeys.COPY_PROVIDER), false, provider -> {
      boolean isEditorPopup = event.getPlace().equals(ActionPlaces.EDITOR_POPUP);
      event.getPresentation().setEnabled(provider.isCopyEnabled(event.getDataContext()));
      event.getPresentation().setVisible(!isEditorPopup || provider.isCopyVisible(event.getDataContext()));
    });
  }
@Override
  public void update(@NotNull AnActionEvent event)