if (leave.getJustificationMotive().getJustificationType() == JustificationType.BALANCE) { pointList.addAll(leave.toTimePoints(AttributeType.BALANCE)); } else { pointList.addAll(leave.toTimePoints(attributesIt.next())); }
AttributeType at = (AttributeType)attributesIt.next(); pointList.addAll(leave.toTimePoints(at));
   	public static void plotListInTimeline(List<Leave> leaveList, Iterator<AttributeType> attributesIt, Timeline timeline) {   		List<TimePoint> pointList = new ArrayList<TimePoint>();   		for (Leave leave: leaveList) {            if (leave.getJustificationMotive().getJustificationType() == JustificationType.BALANCE) {                pointList.addAll(leave.toTimePoints(AttributeType.BALANCE));            } else {                pointList.addAll(leave.toTimePoints(attributesIt.next()));            }   		}   		timeline.plotList(pointList);    }