The list of library dependencies under Project structure doesn't appear to be synchronized with the POM.
For example, if I replace a dependency with another that has a changed package for some classes, I
would expect to see the errors show up in the source, but they don't until I go into structure and
manually delete the old library. What is the solution? Even invalidating caches doesn't help.