onVariableByRuntimeType

inline fun <T : Any> onVariableByRuntimeType(noinline callback: VariableDeclarationCallback<T>)

Same as onVariable, but based on runtime type that is figured out by reflection