unwrapLifecycleOwner

fun Context.unwrapLifecycleOwner(): <Error class: unknown class>?

Helps to nullably-cast Context to LifecycleOwner taking into account that it might be a recursive ContextWrapper.