Using the functionality in https://kotlinlang.org/docs/type-safe-builders.html it should be fairly straightforward to make a Kotlin-specific DSL similar to the `ConfigurationBuilder` Java API.