“Groovy SDK is not configured” with IntelliJ + Homebrew Groov

https://medium.com/@gsaslis/groovy-sdk-is-not-configured-with-intellij-homebrew-groovy-49c6153ff0c1

I installed Groovy with Homebrew ( brew install groovy ) and that means that the path for my Groovy SDK lies in: /usr/local/opt/groovy/libexec.