data class A(val x: Set = setOf()) { fun with(x: Set? = null) { A(x ?: this.x) } }