private boolean programContainsNamedStructure(String structName) {
		ProgramBasedDataTypeManager dtm = currentProgram.getDataTypeManager();
		List<DataType> list = new ArrayList<>();
		dtm.findDataTypes(structName, list, true, monitor);
		for (DataType dt : list) {
			if (dt instanceof Structure) {
				return true;
			}
		}
		return false;
	}
Create new unique Ghidra Class namespace and corresponding structure.
@param var {@code "this"} pointer variable
@param size structure size
@param f Ghidra Class member function
@return new Ghidra Class structure or null on error
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/util/FillOutStructureHelper.java