Use "Tools / Kotlin / Configure Kotlin in project"...
# kobalt
c
Use "Tools / Kotlin / Configure Kotlin in project" to fix it