I\'ve added:
org.springframework.boot spring-boot-configuration-processor
For me, other answers didn't work. I had to go to open Files and do Invalidate caches and restart on Intellij. After that, everything worked fine again.
Files
Invalidate caches and restart