```
if (units != null) {
    for (PsiClass unit : units) {
        addUnit(unit);
    }
}