@Override
    public void buildFinished(int state, int errorCount) {
      try {
        final AntFinishedExecutionEvent.Status status = switch (state) {
          case ABORTED -> AntFinishedExecutionEvent.Status.CANCELED;
          case FAILED_TO_RUN -> AntFinishedExecutionEvent.Status.FAILURE;
          default -> AntFinishedExecutionEvent.Status.SUCCESS;
        };
        myBuildFile.getProject().getMessageBus().syncPublisher(AntExecutionListener.TOPIC).buildFinished(
          new AntFinishedExecutionEvent(myBuildFile, status, errorCount)
        );
      }
      finally {
        myDelegate.buildFinished(state, errorCount);
      }
    }
@Override
    public void buildFinished(int state, int errorCount)