public static Call toCall(Expression expression) {
    Objects.requireNonNull(expression, "expression");
    return maybeCall(expression).orElseThrow(() -> ERROR_FN.apply(expression, Call.class));
  }
Assumes current expression is a {@link Constant}. Throws exception when it is not.
criteria/common/src/org/immutables/criteria/expression/Visitors.java