getOrCreate

inline fun <T> T?.getOrCreate(initBlock: () -> T): T

Util method that returns the instance if it's not null otherwise calls initBlock to create a new instance.