private static boolean isFileFullyCoveredByRange(@NotNull Document document, @Nullable TextRange formatRange) {
    return formatRange != null && formatRange.equals(new TextRange(0, document.getTextLength()));
  }
private static boolean isFileFullyCoveredByRange(@NotNull Document document, @Nullable TextRange formatRange)