docs: private Map<Class<?>, Integer> getGlobalAlternativeMap() {
          if (cachedAlternativeMap == null || dirty) {
              Map<Class<?>, Integer> map = new HashMap<Class<?>, Integer>();
              for (Item item : alternatives) {
                  map.put(item.getJavaClass(), item.getPriority());
              }
              cachedAlternativeMap = ImmutableMap.copyOf(map);
          }
          return cachedAlternativeMap;
      }