private Set<Alert> addNotesToLeg(Leg leg, Set<Alert> notes) { if (notes != null) { for (Alert note : notes) { leg.addAlert(note); } } return notes; }
private Set<Alert> addNotesToLeg(Leg leg, EdgeNarrative edgeNarrative) { Set<Alert> notes = edgeNarrative.getNotes(); if (notes != null) { for (Alert note : notes) { leg.addAlert(note); } } return notes; }