Address getEndAddress() throws InvalidDataTypeException {
		int dtLength = getDataTypeLength();
		if (dtLength == 0) {
			throw new InvalidDataTypeException(
				"Couldn't determine data type length for " + getName() + ".");
		}
		try {
			return address.add(dtLength - 1);
		}
		catch (AddressOutOfBoundsException e) {
			throw new InvalidDataTypeException(
				getName() + " data type doesn't fit in memory at " + getAddress() + ".");
		}
	}
Gets the last address within the data type for this model.
@return the end address or null.
@throws AddressOutOfBoundsException if data type wont fit in memory.
@throws InvalidDataTypeException if length of data type can't be determined.
Ghidra/Features/MicrosoftCodeAnalyzer/src/main/java/ghidra/app/cmd/data/AbstractCreateDataTypeModel.java