public static boolean isAllDeletedByMods(
      Collection<ModEntry> modifications, long startTime, long endTime) {
    if (modifications == null || modifications.isEmpty()) {
      return false;
    }
    for (ModEntry modification : modifications) {
      if ((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