![enter image description here](https://i.stack.imgur.com/5PTQy.png)

```
inline fun <T, R> isNullObject(value: T?, notNullBlock: (T) -> R, isNullBlock: (() -> Unit)? = null) {

if (value != null) {
    notNullBlock(value)
} else {
    if(isNullBlock != null){
        isNullBlock()
    }
}

```

}

I tried to write some higher-order functions to facilitate development, but it is error