private void replaceUsesInOtherDataTypes(DataType existingDt, DataType newDt) {
		if (existingDt instanceof DataTypeDB) {
			// Notify parents that a dependency has been replaced.  For pointers and arrays
			// it may require their subsequent category change or removal to avoid duplication.
			for (DataType dt : existingDt.getParents()) {
				dt.dataTypeReplaced(existingDt, newDt);
			}
		}
		else {
			// Since we do not track parents of non-DB types we must assume that all data types
			// must be modified.  Use of the sortedDataTypes list is the simplest way to do this. 
			// A copy of the list must be used since it will changed if other types get removed
			// in the process.
			buildSortedDataTypeList();
			List<DataType> sortedDataTypesCopy = new ArrayList<>(sortedDataTypes);
			for (DataType dt : sortedDataTypesCopy) {
				dt.dataTypeReplaced(existingDt, newDt);
			}
		}
	}
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