if you get here in 2024, this may be caused by IntelliJ not indexing the project correctly. deleting the .idea folder and restarting the IDE worked for me. see IntelliJ does not show project folders