private void checkDuplicate() {
		CategoryPath categoryPath = dataType.getCategoryPath();
		DataTypeManager dtm = dataType.getDataTypeManager();
		Category category = dtm.getCategory(categoryPath);
		DataType existing = category.getDataType(replacement);
		if (existing != null) {
			setStatus(QuickFixStatus.WARNING, "Datatype with name \"" + replacement +
				"\" already exists in category \"" + category.getCategoryPathName() + "\"");
		}
	}
Constructor
@param program the program containing the datatype to be renamed
@param dataType the datatype being renamed
@param newName the new name for the datatype
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/items/RenameDataTypeQuickFix.java