public void removeObject(Object obj, AddressSetView set) {
        AddressRangeIterator iter = set.getAddressRanges();
        while (iter.hasNext()) {
            AddressRange range = iter.next();
            removeObject(obj, range.getMinAddress(), range.getMaxAddress());
        }
    }
Removes any association with the object and the addresses in the given address set.
@param obj the object to remove
@param set the set of address from which to remove the object.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/AddressObjectMap.java