List<IProfessorship> professorships = this.getProfessorships();  for (IProfessorship professorship : professorships) { IExecutionCourse executionCourse = professorship.getExecutionCourse();
for (final IProfessorship professorship : this.getProfessorships()) { final IExecutionCourse executionCourse = professorship.getExecutionCourse();
    public void updateResponsabilitiesFor(Integer executionYearId, List<Integer> executionCourses)            throws MaxResponsibleForExceed, InvalidCategory {        if (executionYearId == null || executionCourses == null)            throw new NullPointerException();        List<IProfessorship> professorships = this.getProfessorships();        for (IProfessorship professorship : professorships) {            IExecutionCourse executionCourse = professorship.getExecutionCourse();            ResponsibleForValidator.getInstance().validateResponsibleForList(this, executionCourse,                    professorship);            if (executionCourse.getExecutionPeriod().getExecutionYear().getIdInternal().equals(                    executionYearId)) {                professorship.setResponsibleFor(executionCourses.contains(executionCourse                        .getIdInternal()));            }        }    }