private void clearStruct(Structure struct, int offset, int length) {
		DataTypeComponent[] comps = struct.getDefinedComponents();
		int endOffset = offset + length;
		for (int i = comps.length - 1; i >= 0; i--) {
			if (comps[i].getOffset() >= offset && comps[i].getOffset() < endOffset) {
				struct.clearComponent(comps[i].getOrdinal());
			}
		}
	}
Constructs a new command for creating structures inside other structures.

@param name The name of the structure.
@param addr the address of the outer-most structure.
@param fromPath the componentPath of the first component to be consumed in 
the new structure.
@param toPath the componentPath of the second component to be consumed in the
the new structure.
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/data/CreateStructureInStructureCmd.java