Java to Kotlin converter: minor code refactoring