In my case, I cloned an existing project that had never been compiled locally. After compiling and updating the project with Maven in IntelliJ, the autocompletion feature started working properly. See ya!