public void consumeVocabulary(VocabularyHolder holder) { for (VocabularyWord word : holder.getVocabulary()) { if (!this.containsWord(word.getWord())) { this.addWord(word); } else { holder.incrementWordCounter(word.getWord()); } } }