private void clearOldTraffic(){
  List<AirMapTraffic> oldAllTraffic=new ArrayList<>();
  for (  AirMapTraffic traffic : allTraffic) {
    if (trafficExpired(traffic)) {
      oldAllTraffic.add(traffic);
      allTraffic.remove(traffic);
    }
  }
  notifyRemoved(oldAllTraffic);
}

private void clearOldTraffic ( ) { List < AirMapTraffic > oldAllTraffic = new ArrayList < > ( ) ; for ( AirMapTraffic traffic : allTraffic ) { if ( trafficExpired ( traffic ) ) { oldAllTraffic . add ( traffic ) ; allTraffic . remove ( traffic ) ; } } notifyRemoved ( oldAllTraffic ) ; }
get rid of traffic that is no longer valid ( the traffic is expired )
