Kotlin doesn't care about what is contained in a file. You can define as many classes per file as you want. Intellij (and Android studio) make a distinction in creating a new file. This is similar to choosing to create a class versus an interface in Java. They are both Java files, just the content differs.