function parseFile(file: File?) { val file = file ?: throw Exception("File must exist") }
You have a nice day.