public static Set<Integer> mapColumnToNode(Set<Integer> columnIndexes, List<OrcType> orcTypes)
    {
        requireNonNull(columnIndexes, "columnIndexes is null");
        requireNonNull(orcTypes, "orcTypes is null");

        if (columnIndexes.isEmpty()) {
            return ImmutableSet.of();
        }

        OrcType rootType = orcTypes.get(0);
        int fieldCount = rootType.getFieldCount();
        return columnIndexes.stream()
                .filter(columnIndex -> columnIndex < fieldCount)
                .map(rootType::getFieldTypeIndex)
                .collect(toImmutableSet());
    }
@Test
    public void testMapColumnToNodeEmpty()
    {
        Set<Integer> actual = mapColumnToNode(ImmutableSet.of(), ImmutableList.of());
        assertTrue(actual.isEmpty());
    }