assertNotNull

@SinceKotoolsAssert(version = "2.1")
fun <T> T?.assertNotNull(): T

Asserts that this value is not null and returns it.

@SinceKotoolsAssert(version = "2.1")
inline fun <T> assertNotNull(block: () -> T?): T

Asserts that the result of calling the block function is not null and returns it.