I just ran into this issue and I didn't want to delete .idea or do a full invalidate and restart because I was in a hurry. What ended up working was File > Repair IDE
Maybe a newer option? don't know if this was available when the question was first asked.