presto-matching/src/main/java/io/prestosql/matching/pattern/TypeOfPattern.java/TypeOfPattern/TypeOfPattern
class TypeOfPattern:    public TypeOfPattern(Class<T> expectedClass, Optional<Pattern<?>> previous)
    {
        super(previous);
        this.expectedClass = requireNonNull(expectedClass, "expectedClass is null");
    }