Collections.sort(infoSiteShift.getInfoShift().getInfoLessons());
final List<StudentGroup> studentGroups = grouping.readAllStudentGroupsBy(shift);
Integer capacity;
if (grouping.getDifferentiatedCapacity()) {
if (shift.getShiftGroupingProperties() == null) {
new ShiftGroupingProperties(shift, grouping, 0);
}
capacity = shift.getShiftGroupingProperties().getCapacity();
} else {
capacity = grouping.getGroupMaximumNumber();
}