private Structure getParentStructureFromChildStructure(Structure childStructure,
			String parentName)
			throws CancelledException {

		DataTypeComponent[] components = childStructure.getComponents();
		for (DataTypeComponent component : components) {

			monitor.checkCancelled();
			DataType componentDataType = component.getDataType();
			if (componentDataType instanceof Structure &&
				componentDataType.getName().equals(parentName)) {
				return (Structure) componentDataType;
			}
		}
		return null;
	}
Attempts to get the parent structure from within the child structure given the parent name
@param childStructure the child structure
@param parentName the name of the parent structure
@return the parent structure or null if the parent structure is not contained in the child structure
@throws CancelledException if cancelled
Ghidra/Features/Base/ghidra_scripts/GraphClassesScript.java