private static boolean isUpdatingWholeFile(@NotNull TextRange fileRange, @Nullable List<? extends @NotNull TextRange> ranges) {
    if (ranges == null) return true;
    if (ranges.size() == 1) {
      return fileRange.equals(ranges.get(0));
    }

    return false;
  }
private static boolean isUpdatingWholeFile(@NotNull TextRange fileRange, @Nullable List<? extends @NotNull TextRange> ranges)