private static Expression getLess(Expression left, Expression right) {
    if (left instanceof Less || left instanceof LessOrEqual) {
      return left;
    }

    if (right instanceof Less || right instanceof LessOrEqual) {
      return right;
    }

    return null;
  }