@Override
	public DataType addDataType(DataType dt, DataTypeConflictHandler handler) {
		mgr.lock.acquire();
		try {
			checkDeleted();
			if (!getCategoryPath().equals(dt.getCategoryPath())) {
				dt = dt.clone(mgr);
				try {
					dt.setCategoryPath(getCategoryPath());
				}
				catch (DuplicateNameException e) {
					// can't happen here because we made a copy
				}
			}
			DataType resolvedDataType = mgr.resolve(dt, handler);
			return resolvedDataType;
		}
		finally {
			mgr.lock.release();
		}
	}
@see ghidra.program.model.data.Category#addDataType(ghidra.program.model.data.DataType, ghidra.program.model.data.DataTypeConflictHandler)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/CategoryDB.java