private static boolean isFullRange(FormatTextRanges ranges, PsiFile psiFile) {
    return ranges.getRanges().size() == 1 && ranges.getRanges().get(0).getTextRange().equals(psiFile.getTextRange());
  }
private static boolean isFullRange(FormatTextRanges ranges, PsiFile psiFile)