public static Structure findOrCreateClassStruct(Function function) {
		Namespace namespace = function.getParentNamespace();
		if (!(namespace instanceof GhidraClass)) {
			return null;
		}
		return findOrCreateClassStruct((GhidraClass) namespace,
			function.getProgram().getDataTypeManager());
	}
Find the structure data type which corresponds to the specified function's class namespace
within the function's program.

The preferred structure will utilize a namespace-based category path, however,
the match criteria can be fuzzy and relies primarily on the class name.
A properly named class structure must reside within a category whose trailing 
path either matches the class namespace or the class-parent's namespace.  
Preference is given to it residing within the class-parent's namespace.

If a match is not found an empty placeholder structure will be instantiated
and returned.  A newly instantiated structure will not be added to the data type manager
and may refer to a non-existing category path which corresponds to the class-parent's 
namespace.

If the function is not part of a class, or if an unrelated data-type already exists with
the class's name and category, null is returned.

@param function function's whose class namespace is the basis for the structure
@return new or existing structure whose name matches the function's class namespace or
null if function not contained within a class namespace.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/listing/VariableUtilities.java