@Override
    public void commandStarted(@NotNull CommandEvent event) {
      if (!isStarted && (project == null || !project.isDisposed())) {
        manager.onCommandStarted(event.getProject(), event.getUndoConfirmationPolicy(), event.shouldRecordActionForOriginalDocument());
      }
    }
@Override
    public void commandStarted(@NotNull CommandEvent event)