final ScoreTagQueue queue = new ScoreTagQueue(maxTags);
tagCounts.forEachPair(new ObjectIntProcedure<String> () {
@Override
public boolean apply(String first, int second) {
if (second >= cutoff) {
queue.insertWithOverflow(new ScoreTag(first, second));
}
return true;
}
});