public static @NotNull CodeFormattingData prepare(@NotNull PsiFile file, @NotNull List<TextRange> ranges) {
    CodeFormattingData formattingData = getOrCreate(file);
    for (TextRange range : ranges) {
      formattingData.getInjectedRanges(range);
    }

    for (CodeFormattingDataPreparer preparer : CodeFormattingDataPreparer.EP_NAME.getExtensionList()) {
      preparer.prepareFormattingData(file, ranges, formattingData);
    }

    return formattingData;
  }
public static @NotNull CodeFormattingData prepare(@NotNull PsiFile file, @NotNull List<TextRange> ranges)