private boolean verifyNames(String normalizedName, String normalizedNameEn){ for (Context context : getCourseGroupContexts()) { DegreeModule degreeModule = context.getDegreeModule(); if (degreeModule != this) { if(degreeModule.getName() != null && StringFormatter.normalize(degreeModule.getName()).equals(normalizedName)){ return false; } if(degreeModule.getNameEn() != null && StringFormatter.normalize(degreeModule.getNameEn()).equals(normalizedNameEn)){ return false; } } } return true;
private boolean verifyNames(String normalizedName, String normalizedNameEn) { return verifyNames(normalizedName, normalizedNameEn, this);
    private boolean verifyNames(String normalizedName, String normalizedNameEn){        for (Context context : getCourseGroupContexts()) {            DegreeModule degreeModule = context.getDegreeModule();            if (degreeModule != this) {                                if(degreeModule.getName() != null && StringFormatter.normalize(degreeModule.getName()).equals(normalizedName)){                    return false;                }                if(degreeModule.getNameEn() != null && StringFormatter.normalize(degreeModule.getNameEn()).equals(normalizedNameEn)){                    return false;                }            }        }        return true;    }