File → Project Structure → Platform Settings → SDKs → add JDK
File → Project Structure → Project Settings → Project → update Project SDK

File → Project Structure → Project Settings → Modules → + → select added JDK

Whether exsting modules, delete and create module to create .iml file.
If not apply, delete .idea folder, write code and reopen the project.
According notice, define JDK.
To start project, add configuration.
+ → Application
essential setting