private DataType updateDataTypeName(long id, DataType dt,
			MyIdentityHashMap<Long, DataType> resolvedDataTypes) {
		DataType resultDt = dtms[RESULT].getDataType(id);
		DataType newDt = null;
		if (resultDt != null) {
			setDataTypeName(resultDt, dt);
			setCategoryPath(resultDt, dt.getCategoryPath());
		}
		else {
			// create the result data type which was deleted
			newDt = addDataType(id, dt, resolvedDataTypes);
		}
		return newDt;
	}
Update the data type name/category path in RESULT if it exists.
If it does not exist, add it to RESULT.
@param id id of data type
@param dt data type to use as the source name and category path
@param resolvedDataTypes hashtable that has resolved data types
@return the new data type if one had to be added to RESULT; null if
the data type existed
Ghidra/Features/Base/src/main/java/ghidra/app/merge/datatypes/DataTypeMergeManager.java