elvis

@Nullable
open fun <T> elvis(@Nullable object: T, @Nullable defaultValue: T): T(source)

Prefer getOrDefault if the value is expensive to compute or would trigger early configuration.