code: private void unloadSpectraConditionally(NavigableMap<Integer, IScan> scansInSubsetByNumber,
        LCMSDataSubset subset, Set<LCMSDataSubset> exlude) {
      boolean isOkToUnload;
      for (IScan scan : scansInSubsetByNumber.values()) {
        if (subset.isInSubset(scan)) {
          isOkToUnload = true;
          for (LCMSDataSubset exludedSubset : exlude) {
            if (exludedSubset.isInSubset(scan)) {
              isOkToUnload = false;
              break;
            }
          }
          if (isOkToUnload) {
            scan.setSpectrum(null, false);
          }
        }
      }
    }
docs: Unloads spectra from scans that match {@code subset} variable and do not match all of subsets
  from {@code exclude} variable.
  
  @param scansInSubsetByNumber pre-filtered scan map, e.g. by scan numbers, ms-levels, etc.