private Structure createUniqueClassNamespaceAndStructure(HighVariable var, int size,
			Function f) {
		Namespace newNamespace = createUniqueClassName();
		if (newNamespace == null) {
			return null;
		}

		// Move function into new Ghidra Class namespace
		RenameLabelCmd command =
			new RenameLabelCmd(f.getSymbol(), f.getName(), newNamespace, SourceType.USER_DEFINED);
		if (!command.applyTo(currentProgram)) {
			return null;
		}

		// Allocate new Ghidra Class structure
		Structure structDT = VariableUtilities.findOrCreateClassStruct(f);
		if (structDT == null) {
			return null;
		}

		expandStructureSizeIfNeeded(structDT, size);

		return structDT;
	}
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