withIf

inline fun <T, R> withIf(receiver: T, condition: Boolean, block: T.() -> R): R?