firstAncestorOfType

inline fun <T : View> View?.firstAncestorOfType(includeThis: Boolean = true): T?