private DataType findEquivalentDataTypeSameLocation(DataType dataType) {

		// Check exact name match
		DataType existingDataType = getDataType(dataType.getCategoryPath(), dataType.getName());

		// If the existing Data type is currently being resolved, its isEquivalent
		// method is short circuited such that it will return true. So it is important 
		// to call the isEquivalent on the existing datatype and not the dataType.
		if (existingDataType != null &&
			DataTypeDB.isEquivalent(existingDataType, dataType, currentHandler)) {
			return existingDataType;
		}

		List<DataType> relatedByName = findDataTypesSameLocation(dataType);
		for (DataType candidate : relatedByName) {
			if (candidate != existingDataType &&
				DataTypeDB.isEquivalent(candidate, dataType, currentHandler)) {
				return candidate;
			}
		}
		return null;
	}
Finds an datatype in this manager that is equivalent and has the same
categoryPath and has either the same name or a conflict variation of that
name.

@param dataType the dataType for which to find an equivalent existing dataType
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java