@Override
        public void onCancel(@NotNull ExternalSystemTaskId id) {
          finishSyncEventSupplier.set(() -> {
            var eventTime = System.currentTimeMillis();
            var eventMessage = BuildBundle.message("build.status.cancelled");
            var eventResult = new FailureResultImpl();
            return new FinishBuildEventImpl(id, null, eventTime, eventMessage, eventResult);
          });
          processHandler.notifyProcessTerminated(1);
        }
@Override
        public void onCancel(@NotNull ExternalSystemTaskId id)