These two branches are certainly clear, but would
```
Set<String> nodeNames = template.getOptions().getNodeNames();
if (nodeNames.size() >= count) {
  return ImmutableSet.copyOf(Iterables.limit(nodeNames, count));
} else {
  names.addAll(nodeNames);
}
```
be clear enough, and a bit shorter?