question: static public int countRangesThatCollideZone ( List < Bounds > ranges , List < Bounds > zoneRanges ) { int overallEOAA = 0 ; Collections . sort ( zoneRanges ) ; for ( Bounds extractedBounds : ranges ) { for ( Bounds expectedBounds : zoneRanges ) { if ( expectedBounds . start >= extractedBounds . end ) { break ; } if ( extractedBounds . overlaps ( expectedBounds ) ) { overallEOAA ++ ; break ; } } } return overallEOAA ; }
target:  Counts the number of checkedRanges that overlaps with the zoneRanges. A Bounds object in checkedRanges who doesn't overlap with zoneRanges are not counted.