applyIf

inline fun <T : Any> T.applyIf(condition: Boolean, function: T.() -> Unit): T