docs: public static Map<String, Object> newMapInstance(Class<?> mapClass) {
      if (mapClass == null || mapClass.isAssignableFrom(ArrayMap.class)) {
        return ArrayMap.create();
      }
      if (mapClass.isAssignableFrom(TreeMap.class)) {
        return new TreeMap<String, Object>();
      }
      @SuppressWarnings("unchecked")
      Map<String, Object> result = (Map<String, Object>) Types.newInstance(mapClass);
      return result;
    }