Convert Java Code to Kotlin and Configuring Kotlin