question: public void scan ( BugCollection bugCollection , String filename ) throws Exception { Iterator < BugInstance > i = bugCollection . iterator ( ) ; while ( i . hasNext ( ) ) { BugInstance bugInstance = i . next ( ) ; Set < String > contents = bugInstance . getTextAnnotationWords ( ) ; for ( String aKeywordSet : keywordSet ) { if ( contents . contains ( aKeywordSet ) ) { match ( bugInstance , filename ) ; break ; } } } }
target:  Scan bug instances contained in given bug collection, reporting those whose text annotations contain at least one of the keywords in the query.