To make use of Behat, we first have to install it on our system. Read more about Behat installation in official documentation.
Installing Behat via Composer
Use the Composer | Add dependency... context menu on your project and install behat/behat package:
Installing Behat with Phar package
You can either download behat.phar package from Behat GitHub repository, or install it in Settings | PHP | Behat | Download behat.phar from...
Run Configuration for Behat
1) Resolve from step in Gherkin file to Context file
2) Find Usages from Context file to usages in Gherking files
3) Keyword and step completion
4) Generation for undefined steps