return flatten(condition, new ArrayList<ValueExpr>());
}
private List<ValueExpr> flatten(ValueExpr condition, List<ValueExpr> conditions) {
if (condition instanceof And) {
And and = (And)condition;
flatten(and.getLeftArg(), conditions);
flatten(and.getRightArg(), conditions);
}
else {
conditions.add(condition);
}
return conditions;