public void replaceAll(final List<? extends ReplacementInfo> infos) {
    for (ReplacementInfo info : infos) {
      replaceHandler.prepare(info);
    }
    if (IntentionPreviewUtils.isIntentionPreviewActive()) {
      doReplaceAll(infos, new EmptyProgressIndicator());
    } else {
      ((ApplicationEx)ApplicationManager.getApplication()).runWriteActionWithCancellableProgressInDispatchThread(
        SSRBundle.message("structural.replace.title"),
        project,
        null,
        indicator -> doReplaceAll(infos, indicator)
      );
    }
  }
public void replaceAll(final List<? extends ReplacementInfo> infos)