private void sendPendingState(
    @NotNull BuildController controller,
    @NotNull GradleOpenTelemetry telemetry,
    @NotNull GradleDaemonModelHolder models,
    @NotNull GradleModelFetchPhase phase
  ) {
    telemetry.runWithSpan("SendPendingState", span -> {
      span.setAttribute("use-streamed-values", myUseStreamedValues);
      if (myUseStreamedValues) {
        GradleModelHolderState state = models.pollPendingState();
        GradleModelHolderState phasedState = state.withPhase(phase);
        controller.send(phasedState);
      }
    });
  }
private void sendPendingState(
    @NotNull BuildController controller,
    @NotNull GradleOpenTelemetry telemetry,
    @NotNull GradleDaemonModelHolder models,
    @NotNull GradleModelFetchPhase phase
  )