private void placeType(Program program, Address addr, DataType type) {
		DumbMemBufferImpl memBuffer =
			new DumbMemBufferImpl(program.getMemory(), addr);
		DataTypeInstance dti = DataTypeInstance.getDataTypeInstance(type, memBuffer, false);
		if (dti == null) {
			Msg.warn(MockPdb.class,
				"Error: Failed to apply datatype " + type.getName() + " at " + addr);
			return;
		}
		DataType dt = dti.getDataType();
		int length = dti.getLength();

		try {
			program.getListing().clearCodeUnits(addr, addr.add(length - 1), false);
			if (dt.getLength() == -1) {
				program.getListing().createData(addr, dt, length);
			}
			else {
				program.getListing().createData(addr, dt);
			}
		}
		catch (CodeUnitInsertionException e) {
			Msg.warn(MockPdb.class, "Unable to create " + dt.getDisplayName() + " at 0x" +
				addr + ": " + e.getMessage());
		}
	}
Method to resolve all CppTypes types
@param dtm the data type manager
Ghidra/Features/PDB/src/test/java/ghidra/app/util/pdb/MockPdb.java