then $staff : StaffAssignment(shiftType != null) $li : HashSet() from collect ( TimeSetDto(timeSet != null) from $staff.getTimeSet() ) then