List associatedLessons = shift.getAssociatedLessons(); for (int i = 0; i < associatedLessons.size(); i++) { lesson = (ILesson) associatedLessons.get(i);
final List<ILesson> associatedLessons = shift.getAssociatedLessons(); for (final ILesson lesson : associatedLessons) {
    private double getTotalHoursOfShiftType(IShift shift, Integer lessonId, Calendar start, Calendar end)            throws ExcepcaoPersistencia {        ILesson lesson = null;        double duration = 0;        List associatedLessons = shift.getAssociatedLessons();        for (int i = 0; i < associatedLessons.size(); i++) {            lesson = (ILesson) associatedLessons.get(i);            if (!lesson.getIdInternal().equals(lessonId)) {                duration += (getLessonDurationInMinutes(start, end).doubleValue() / 60);            }        }        return duration;    }