private String getUniqueDataTypeName(CategoryPath path, String baseName) {
		int pos = baseName.lastIndexOf('_');
		int oneUpNumber = 0;
		String name = baseName;
		if (pos > 0) {
			String numString = baseName.substring(pos + 1);
			try {
				oneUpNumber = Integer.parseInt(numString);
				name = baseName;
				baseName = baseName.substring(0, pos);
			}
			catch (NumberFormatException e) {
				// the number will get updated below
			}
		}
		DataTypeManager originalDtm = getOriginalDataTypeManager();
		// Pick a name not used within either original or view DTM
		while (originalDtm.getDataType(path, name) != null ||
			viewDTM.getDataType(path, name) != null) {
			++oneUpNumber;
			name = baseName + "_" + oneUpNumber;
		}
		return name;
	}
Get a unique datatype name.  Method based on the logic used by 
{@link DataTypeManager#getUniqueName(CategoryPath, String)} but 
checks both the original and view DTMs for uniqueness.
@param path category path
@param baseName datatype name
@return unique datatype name
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/StructureEditorModel.java