what was weird, which may be related, is that when I converted the first file to kotlin, I went to Tools -> Kotlin -> Configure kotlin so it would configure kotlin in the module automatically, but it said that all modules with kotlin files were already configured