presto-orc/src/main/java/io/prestosql/orc/reader/ReaderUtils.java/ReaderUtils/unpackIntNulls
class ReaderUtils:    public static int[] unpackIntNulls(int[] values, boolean[] isNull)
    {
        int[] result = new int[isNull.length];

        int position = 0;
        for (int i = 0; i < isNull.length; i++) {
            result[i] = values[position];
            if (!isNull[i]) {
                position++;
            }
        }
        return result;
    }