Try to close the project and the IDE, remove all .iml files and the .idea directory via the OS task manager from your project and re-import from scratch https://www.jetbrains.com/help/idea/import-project-or-module-wizard.html#open-project
.iml
.idea