for (CurricularCourse course : allCurricularCourses) { if(!studentCurricularPlan.isCurricularCourseApproved(course) && !studentCurricularPlan.isCurricularCourseEnrolledInExecutionPeriod(course, executionPeriod)) { if(isAnyScopeActive(course.getScopes())) { areaCourses.add(course); }
for (CurricularCourse course : allCurricularCourses) { if (!studentCurricularPlan.isCurricularCourseApproved(course) && !studentCurricularPlan.isCurricularCourseEnrolledInExecutionPeriod(course, executionPeriod)) { if (isAnyScopeActive(course.getScopes())) { areaCourses.add(course);
	protected List<CurricularCourse> getLEIC4And5Courses() {	    Set<CurricularCourse> allCurricularCourses = new HashSet<CurricularCourse>();	    Set<CurricularCourse> areaCourses = new HashSet<CurricularCourse>();	    for (Branch branch : (List<Branch>) studentCurricularPlan.getDegreeCurricularPlan().getSpecializationAreas()) {		addOldCurricularCourses(allCurricularCourses, branch.getCurricularCourseGroups());	    }	    for (Branch branch : (List<Branch>)studentCurricularPlan.getDegreeCurricularPlan().getSecundaryAreas()) {		addOldCurricularCourses(allCurricularCourses, branch.getCurricularCourseGroups());	    }	    allCurricularCourses.removeAll(specializationAndSecundaryAreaCurricularCoursesToCountForCredits);	    addOldCurricularCourses(allCurricularCourses, studentCurricularPlan.getDegreeCurricularPlan().getAllOptionalCurricularCourseGroups());	    for (CurricularCourse course : allCurricularCourses) {		if(!studentCurricularPlan.isCurricularCourseApproved(course) && !studentCurricularPlan.isCurricularCourseEnrolledInExecutionPeriod(course, executionPeriod)) {		    if(isAnyScopeActive(course.getScopes())) {			areaCourses.add(course);		    }		}		else {		    if(isAnyScopeActive(course.getScopes())) {			optionalCourses++;		    }		}	    }	    return new ArrayList<CurricularCourse>(areaCourses);	}