Converting Java to Kotlin can be a tricky thing. The languages aren't a million miles from each other, and the Java-to-Kotlin converter provided by JetBrains does an admirable job, but direct conversions like these often fail to account for idiomatic...