Kotlin 1.9 branching happens soon.
We will ship an API that makes this configurable with Kotlin 1.9.0
Many thanks to @Jeff Lockhart as he was massively contributing/pushing in the design phase by writing a proposal.
See image for attached API example
See image for documentation of SourceSetTree