@NotNull
  Map<String, String> getLocalNamespaceDeclarations() {
    Map<String, String> namespaces = new HashMap<>();
    for (final XmlAttribute attribute : myTag.getAttributes()) {
      if (!attribute.isNamespaceDeclaration() || attribute.getValue() == null) continue;
      // xmlns -> "", xmlns:a -> a
      final String localName = attribute.getLocalName();
      namespaces.put(localName.equals(attribute.getName()) ? "" : localName, attribute.getValue());
    }
    return namespaces;
  }
@NotNull
  Map<String, String> getLocalNamespaceDeclarations()