get Static Object Or Null Until Superclass
fun getStaticObjectOrNullUntilSuperclass(clazz: Class<*>, fieldName: String, untilSuperClass: Class<*>.() -> Boolean? = null): Any?
Get the static object
Return
field object or null
Parameters
clazz
class
field Name
field name
until Super Class
until super class(true = break, false = continue), or null if find in all superclasses
Throws
if the field is not found