Adapt to Kotlin version 0.7.270 with builtin swing support