public static Constant constantOfType(@Nullable Object value, Type type) {
    Objects.requireNonNull(type, "type");
    return Constant.ofType(value, type);
  }
A set of predefined utilities and factories for expressions like {@link Constant} or {@link Call}
criteria/common/src/org/immutables/criteria/expression/Expressions.java