@Override
  public void reformatText(@NotNull PsiFile file, @NotNull Collection<? extends TextRange> ranges) throws IncorrectOperationException {
    FormatTextRanges formatRanges = new FormatTextRanges();
    ranges.forEach((range) -> formatRanges.add(range, true));
    reformatText(file, formatRanges, (myRanges, psiFile) -> isFullRange(myRanges, psiFile));
  }
@Override
  public void reformatText(@NotNull PsiFile file, @NotNull Collection<? extends TextRange> ranges)