private boolean checkRef(KeyedSoftReference<T> ref, List<KeyRange> keyRanges) {
		long key = ref.getKey();
		if (keyRangesContain(keyRanges, key)) {
			DatabaseObject obj = ref.get();
			if (obj != null) {
				obj.setDeleted();
				ref.clear();
			}
			return true;
		}
		return false;

	}
Delete all objects from cache whose key is contained
within the specified keyRanges.  Iteration over all
keys contained within map will be performed.
@param keyRanges key ranges to delete
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DBObjectCache.java