private static @Nullable Span startProcessSpan(@Nullable ProgressIndicator progress) {
    if (!(progress instanceof TitledIndicator)) {
      return null;
    }

    String progressText = ((TitledIndicator)progress).getTitle();
    return progressManagerTracer.spanBuilder("Progress: " + progressText, TracerLevel.DEFAULT).startSpan();
  }
private static @Nullable Span startProcessSpan(@Nullable ProgressIndicator progress)