firstInstance

inline fun <R> Sequence<*>.firstInstance(): R?
inline suspend fun <R> Flow<*>.firstInstance(): R?

Returns first element that is instance of specific type parameter R, or null if not found