docs: public static <K, V> Dictionary<K, V> wrap(Map<K, V> map) {
          if (map instanceof DictionaryAsMap) {
              return ((DictionaryAsMap<K, V>) map).getDictionary();
          }
          return new MapAsDictionary<K, V>(map);
      }