public static @Nullable("When progress indicator cannot be made suspendable (e.g. EmptyProgressIndicator)") ProgressSuspender markSuspendable(@NotNull ProgressIndicator indicator, @NotNull @NlsContexts.ProgressText String suspendedText) {
    if (indicator instanceof ProgressIndicatorEx indicatorEx) {
      return markSuspendable(indicatorEx, suspendedText);
    } else {
      return null;
    }
  }
public static @Nullable("When progress indicator cannot be made suspendable (e.g. EmptyProgressIndicator)") ProgressSuspender markSuspendable(@NotNull ProgressIndicator indicator, @NotNull @NlsContexts.ProgressText String suspendedText)