As seen in #27409, this change also implies switching to a JDK17 baseline for compiling Kotlin code.

Comment From: bclozel

Waiting for https://youtrack.jetbrains.com/issue/KT-49329

Comment From: bclozel

I've created #27814 as a follow up.