Go to the android studio's navigation bar
go to code (close to file)
then scroll down to convert java to kotlin
Note that your code must be totally correct first: syntax errors mean you won't be able to convert
Tools -> Kotlin -> Show Kotlin Bytecode