I added dependency to my pom file. I see that it was added to the dependency tree. In the class Idea proposes to import the class I need but when I press alt+enter nothing happens, it just proposes to import again.
I tried all the solutions mentioned here: Intellij Cannot resolve symbol on import
(invalidate cache, maven reimport, checked source and dependency folders, everything). Nothing helped.
I use Intellij Idea 2019.2 Ultimate edition.