I have the following code snippet:

```
Set<Company> companiesByUserName = companyUserService.getCompaniesByUserName(username);

```

Using IntelliJ live templates, I know I can type "itco" and it will generate the following for me:

```
for (Iterator<Company> iterator = companiesByUserName.iterator(); iterator.hasNext(); ) {
    Company next =  iterator.next();
}

```

However, how can I automatically create a foreach with the 'companiesByUserName' variable instead? So I want it to generate this automatically:

```
for (Company company: companiesByUserName) {
}

```

Because the foreach is a lot cleaner that iterating through the collection in a for loop, I generally use those instead, so would like to auto generate them if possible.