if (operator instanceof Optional) {
if (operator.getPrecedingOperators().size() == 2) {
BasicOperator o = operator.getPrecedingOperators().get(0);
if (// o.getSucceedingOperators().size() == 1 &&
o.getUnionVariables().containsAll(filter.getUsedVariables())
&& !(o instanceof Filter && filter
.equalFilterExpression((Filter) o))) {
o = operator.getPrecedingOperators().get(1);
if (// o.getSucceedingOperators().size() == 1 &&
o.getUnionVariables()
.containsAll(filter.getUsedVariables())