public void update(List<Race> races){
  if (currentRace == null) {
    return;
  }
  if (races.contains(currentRace)) {
    setRace(races.get(races.indexOf(currentRace)));
  }
}

public void update ( List < Race > races ) { if ( currentRace == null ) { return ; } if ( races . contains ( currentRace ) ) { setRace ( races . get ( races . indexOf ( currentRace ) ) ) ; } }
give this list of races , whereas the dialog picks out the one it currently has open ( if present ) .
