presto-orc/src/main/java/io/prestosql/orc/stream/InputStreamSources.java/InputStreamSources/getInputStreamSource
class InputStreamSources:    public <S extends ValueInputStream<?>> InputStreamSource<S> getInputStreamSource(OrcColumn column, StreamKind streamKind, Class<S> streamType)
    {
        requireNonNull(column, "column is null");
        requireNonNull(streamType, "streamType is null");

        InputStreamSource<?> streamSource = streamSources.get(new StreamId(column.getColumnId(), streamKind));
        if (streamSource == null) {
            streamSource = missingStreamSource(streamType);
        }

        checkArgument(streamType.isAssignableFrom(streamSource.getStreamType()),
                "%s must be of type %s, not %s",
                column,
                streamType.getName(),
                streamSource.getStreamType().getName());

        return (InputStreamSource<S>) streamSource;
    }