private static boolean isValidField(Field field) {
		int modifiers = field.getModifiers();
		if (Modifier.isStatic(modifiers)) {
			return false;
		}
		if (!Modifier.isPrivate(modifiers) &&
			!Modifier.isProtected(modifiers)) {
			return false;
		}
		if (field.getName().startsWith("_")) {
			return false;
		}
		return true;
	}
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