presto-orc/src/main/java/io/prestosql/orc/stream/CheckpointInputStreamSource.java/CheckpointInputStreamSource/createCheckpointStreamSource
class CheckpointInputStreamSource:    public static <S extends ValueInputStream<C>, C extends StreamCheckpoint> CheckpointInputStreamSource<S, C> createCheckpointStreamSource(S stream, StreamCheckpoint checkpoint)
    {
        requireNonNull(stream, "stream is null");
        requireNonNull(checkpoint, "checkpoint is null");

        C verifiedCheckpoint = (C) checkpoint;
        return new CheckpointInputStreamSource<>(stream, verifiedCheckpoint);
    }