private void calculateTermFrequencies(List<PatternReference> patterns,Set<Word> terms){
  patterns.forEach(null);
}

private void calculateTermFrequencies ( List < PatternReference > patterns , Set < Word > terms ) { patterns . forEach ( null ) ; }
calculate term frequencies for each pattern .
