@NotNull
  private List<TextRange> getRangesToFormat(@NotNull PsiFile file, boolean processChangedTextOnly) {
    if (processChangedTextOnly) {
      ChangedRangesInfo info = VcsFacade.getInstance().getChangedRangesInfo(file);
      return info != null ? info.allChangedRanges : Collections.emptyList();
    }
    if (mySelectionModel != null) {
      return getSelectedRanges(mySelectionModel);
    }

    return !myRanges.isEmpty() ? myRanges : List.of(file.getTextRange());
  }
@NotNull
  private List<TextRange> getRangesToFormat(@NotNull PsiFile file, boolean processChangedTextOnly)