getObjectOrNullUntilSuperclassAs

fun <T> getObjectOrNullUntilSuperclassAs(fieldName: String, untilSuperClass: Class<*>.() -> Boolean? = null): T?