protected static AddressSpace findSpaceSameName(AddressSpace oldSpace,
			ArrayList<AddressSpace> newSpaces) throws IncompatibleLanguageException {

		Iterator<AddressSpace> it = newSpaces.iterator();
		while (it.hasNext()) {
			AddressSpace space = it.next();
			if (space.getName().equals(oldSpace.getName())) {
				if (oldSpace.getSize() > space.getSize()) {
					throw new IncompatibleLanguageException("Old language space (" +
						oldSpace.getName() + ") has larger address space than the new language");
				}
				return space;
			}
		}
		return null;
	}
Build and validate the default address space map.  This method must be invoked following instantiation
if the default address space mapping will be used.
@throws IncompatibleLanguageException if a default mapping of the address spaces could not be identified.
@see #getNewAddressSpace(String)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/LanguageTranslatorAdapter.java