private static void addToAddressSet(AddressSet set, VariableStorage storage) {
		List<Register> registers = storage.getRegisters();
		if (registers != null) {
			for (Register reg : registers) {
				Address minAddr = reg.getAddress();
				Address maxAddr = minAddr.add(reg.getMinimumByteSize() - 1);
				set.addRange(minAddr, maxAddr);
			}
		}
		for (Varnode varnode : storage.getVarnodes()) {
			Address minAddr = varnode.getAddress();
			Address maxAddr = minAddr.add(varnode.getSize() - 1);
			set.addRange(minAddr, maxAddr);
		}
	}
Recursively expand the variable storage (set1,set2) to encompass all
variables associated with the corresponding sets (variables1,variables2) which
intersects the other set.  Any variables added to the overlap set will also be added
to the corresponding overlapList.
@param firstUseOffset first use offset or -1 for parameter
@param variables1
@param set1
@param overlapList1
@param variables2
@param set2
@param overlapList2
@param monitor
@throws CancelledException
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/VariableStorageConflicts.java