docs: protected static String[] toIndexedStringArray(Map<String, Integer> labelToIndexMap) {
          final String[] array = new String[labelToIndexMap.size()];
          for (String label : labelToIndexMap.keySet()) {
              array[labelToIndexMap.get(label)] = label;
          }
          return array;
      }