presto-parser/src/main/java/io/prestosql/sql/tree/GenericLiteral.java/GenericLiteral/GenericLiteral
class GenericLiteral:    private GenericLiteral(Optional<NodeLocation> location, String type, String value)
    {
        super(location);
        requireNonNull(type, "type is null");
        requireNonNull(value, "value is null");
        if (type.equalsIgnoreCase("X")) {
            // we explicitly disallow "X" as type name, so if the user arrived here,
            // it must be because that he intended to give a binaryLiteral instead, but
            // added whitespace between the X and quote
            throw new ParsingException("Spaces are not allowed between 'X' and the starting quote of a binary literal", location.get());
        }
        this.type = type;
        this.value = value;
    }