captureNullable

inline fun <T : Any> captureNullable(lst: MutableList<T?>): T?