presto-jmx/src/main/java/io/prestosql/plugin/jmx/JmxRecordSetProvider.java/JmxRecordSetProvider/calculateSelectedColumns
class JmxRecordSetProvider:    private List<Integer> calculateSelectedColumns(List<JmxColumnHandle> columnHandles, Set<String> selectedColumnNames)
    {
        ImmutableList.Builder<Integer> selectedColumns = ImmutableList.builder();
        for (int i = 0; i < columnHandles.size(); i++) {
            JmxColumnHandle column = columnHandles.get(i);
            if (selectedColumnNames.contains((column.getColumnName()))) {
                selectedColumns.add(i);
            }
        }
        return selectedColumns.build();
    }