} else if (qualifier instanceof EOOrQualifier) {
NSMutableArray<EOQualifier> array = new NSMutableArray<EOQualifier>();
for (EOQualifier item : ((EOOrQualifier)qualifier).qualifiers()) {
array.add(replaceQualifierWithQualifier(item, searchFor, replaceWith));
}
result = new EOOrQualifier(array);
} else if (qualifier instanceof EONotQualifier) {
EOQualifier replacedQualifier = replaceQualifierWithQualifier(((EONotQualifier)qualifier).qualifier(), searchFor, replaceWith);
result = new EONotQualifier(replacedQualifier);
}
return result;