extractAndPutIfPresentOrNull
fun MutableMap<String, Any?>.extractAndPutIfPresentOrNull(key: String, data: Map<String, Any?>, ifPresent: (Any?) -> Any? = { it })
Same as extractAndPutIfPresent, but also copies an explicit null value from data (applying ifPresent to it too) — only skips the copy when key is entirely absent from data.