Except the answer above(which didn't help in my case), I've deleted .idea folder in the project.
My environment: MacOS Editor: IntelliJ.
Hope this helps.