Java to Kotlin converter: used standard utility for main method detection
Java to Kotlin converter: refactoring