question: private static SearchResultGroup extractGroupFor ( ICompilationUnit cu , List < SearchResultGroup > searchResultGroups ) { for ( Iterator < SearchResultGroup > iter = searchResultGroups . iterator ( ) ; iter . hasNext ( ) ; ) { SearchResultGroup group = iter . next ( ) ; if ( cu . equals ( group . getCompilationUnit ( ) ) ) { iter . remove ( ) ; return group ; } } return null ; }
target:  Removes the found SearchResultGroup from the list iff found.