void () { Pair<String, List<ChangeSet>> pathAndChanges = collectChanges(); List<ChangeSet> changes = pathAndChanges.second; if (changes.isEmpty()) { nothingToVisit(); return; } for (ChangeSet c : changes) { visit(c); } }