A new possible solution is to use this "Repair IDE". From the link: "Using the Repair IDE action, you can troubleshoot the issues with unresolved code or corrupted caches in your project without invalidating the cache and restarting the IDE."