private static Address normalizeSegmentedAddress(CodeUnit codeUnit, Address address) {
		if (!(address instanceof SegmentedAddress)) {
			return address;
		}

		SegmentedAddress segmentedAddress = (SegmentedAddress) address;
		SegmentedAddress codeUnitAddress = (SegmentedAddress) codeUnit.getAddress();
		return segmentedAddress.normalize(codeUnitAddress.getSegment());
	}
normalize to code unit address (in case we have segmented addresses)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/symbol/SymbolUtilities.java