When I create a build.gradle file and open it with IntelliJ, it does not recognize the build.gradle file and a lightbulb appears suggesting that I correct my gradle syntax. See the picture on top. I can still run the gradle file successfully in intellij.
However, when I create a Gradle Project using the New Project option in IntelliJ, I get proper syntax highlighting.
What should I do to get syntax highlighting for my build.gradle file?

