Just about code style, I would prefer

```
if (iterator.hasNext()) {
    continue;
}
```

rather than the short form.