public static RexNode simplify(RexBuilder rexBuilder, RexNode e) {
final List<RexNode> disjunctions = RelOptUtil.conjunctions(e);
final List<RexNode> notDisjunctions = new ArrayList<RexNode>();
for (int i = 0; i < disjunctions.size(); i++) {
final RexNode disjunction = disjunctions.get(i);
final SqlKind kind = disjunction.getKind();
switch (kind) {
case NOT:
notDisjunctions.add(
((RexCall) disjunction).getOperands().get(0));
disjunctions.remove(i);