public static final Collection<Race> findRaces(String stream,Collection<Race> races){
  Collection<Race> result=new ArrayList<>();
  for (  Race r : races) {
    for (    Entrant e : r.getEntrants()) {
      if (stream.equalsIgnoreCase(e.twitch)) {
        result.add(r);
      }
    }
  }
  return result;
}

public static final Collection < Race > findRaces ( String stream , Collection < Race > races ) { Collection < Race > result = new ArrayList < > ( ) ; for ( Race r : races ) { for ( Entrant e : r . getEntrants ( ) ) { if ( stream . equalsIgnoreCase ( e . twitch ) ) { result . add ( r ) ; } } } return result ; }
help function to find races that contain the entrant with the given stream .
