private void replaceDataType(DataType replacedDt, DataType replacementDt) {

		DataTypePath replacedDtPath = replacedDt.getDataTypePath();
		long replacedId = getID(replacedDt);

		UniversalID id = replacedDt.getUniversalID();
		idsToDataTypeMap.removeDataType(replacedDt.getSourceArchive(), id);

		try {
			parentChildAdapter.removeAllRecordsForParent(replacedId);
		}
		catch (IOException e) {
			dbError(e);
		}
		deleteDataTypeRecord(replacedId);
		dtCache.delete(replacedId);

		dataTypeReplaced(replacedId, replacedDtPath, replacementDt);
	}
Allow extensions to perform any neccessary fixups to address all datatype replacements.
@param dataTypeReplacementMap map of datatype replacements (oldID maps to replacementID).
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java