private static @Nullable EventResult convertEventResult(@NotNull OperationResult result) {
    if (result instanceof FailureResult) {
      var failures = convertFailureResult((FailureResult)result);
      return new FailureResultImpl(failures);
    }
    else if (result instanceof SkippedResult) {
      return new SkippedResultImpl();
    }
    else if (result instanceof SuccessResult successResult) {
      return new SuccessResultImpl(successResult.isUpToDate());
    }
    return null;
  }
private static @Nullable EventResult convertEventResult(@NotNull OperationResult result)