@SuppressWarnings("unchecked")
  @Nullable
  private static <T> Map<String, T> getMap(@NotNull Map<String, ?> map, String key) {
    Object o = map.get(key);
    return o instanceof Map ? (Map<String, T>)o : null;
  }
@SuppressWarnings("unchecked")
  @Nullable
  private static <T> Map<String, T> getMap(@NotNull Map<String, ?> map, String key)