This test infra ships in Kotlin 2.3.0: https://github.com/JetBrains/kotlin/commit/264f4b4dfbd96c63dd2c32c03ec49ce29686abe4