runCatching
getOrThrow
run
Example:
fun foo() = runCatching { doSomething() }.getOrThrow()
After the quick-fix is applied:
fun foo() = run { doSomething() }