public String[] @Nullable [] getNamespacesFromDocument(final XmlDocument parent, boolean declarationsExist) {
    return declarationsExist ? null : XmlUtil.getDefaultNamespaces(parent);
  }
public String[] @Nullable [] getNamespacesFromDocument(final XmlDocument parent, boolean declarationsExist)