public final void add(AddressSetView addressSet) {
		if (addressSet == null) {
			return;
		}

		if (useLinearAlgorithm(addressSet)) {
			AddressSet newSet = mergeSets(addressSet);
			rbTree = newSet.rbTree;
			addressCount = newSet.addressCount;
			lastNode = null;
		}
		else {
			AddressRangeIterator it = addressSet.getAddressRanges();
			while (it.hasNext()) {
				AddressRange range = it.next();
				addRange(range.getMinAddress(), range.getMaxAddress());
			}
		}
	}
Add all addresses of the given AddressSet to this set.
@param addressSet set of addresses to add.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/AddressSet.java