To install the Cucumber for Java plugin for IntelliJ on a Mac,
- Start IntelliJ IDEA.
- Click on the "IntelliJ IDEA" tab in the top bar.
- Click on "Preferences".
- In Preferences/Settings, click "Plugins" in the left-hand pane.
- Click the "Browse Repositories" button, which brings up a new window.
- Search for "Cucumber" in the search bar.
- Install the "Cucumber for Java" plugin.
- Restart the IDE for the plugin to take effect. The Cucumber for Java is now installed.