public static boolean isTimeseriesDeletedByMods(
      Collection<ModEntry> modifications,
      IDeviceID device,
      String timeseriesId,
      long startTime,
      long endTime) {
    for (ModEntry modification : modifications) {
      if (modification.affects(device)
          && modification.affects(timeseriesId)
          && modification.getTimeRange().contains(startTime, endTime)) {
        return true;
      }
    }
    return false;
  }
Check whether the device with start time and end time is completely deleted by mods or not.
There are some slight differences from that in {@link SettleSelectorImpl}.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ModificationUtils.java