private static DataType toDataType(Class<?> clazz, Object object) {
		String name = parseName(clazz);
		Structure struct = new StructureDataType(name, 0);
		List<Field> fields = getFields(clazz);
		for (Field field : fields) {
			if (isValidField(field)) {
				DataType dt = getDataType(field, object);
				struct.add(dt, field.getName(), null);
			}
		}
		return struct;
	}
This is a convenience method for converting a class into structure.
The class is reflected to extract the field members.
Only private non-static fields are considered.
Any field names that start with underscore ("_") are ignored.
@param clazz the class to reflect
@return a structure representing the class fields.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/StructConverterUtil.java