private static List<Field> getFields(Class<?> clazz) {
		List<Field> fieldList = new ArrayList<Field>();
		if (clazz != null) {
			fieldList.addAll( getFields(clazz.getSuperclass()) );
			Field [] fields = clazz.getDeclaredFields();
			for (Field field : fields) {
				fieldList.add( field );
			}
		}
		return fieldList;
	}
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