private static @Nullable String getRegion(@NotNull Map<String, Attribute> attrs) {
    Attribute attr = attrs.get("region");
    return attr == null ? null : attr.value();
  }
private static @Nullable String getRegion(@NotNull Map<String, Attribute> attrs)