@SuppressWarnings({"SimplifiableIfStatement"})
    private static boolean isNamespaceDeclared(@Nullable XmlTag tag, String namespace) {
        if (tag == null) return false;
        if (tag.getLocalNamespaceDeclarations().containsValue(namespace)) return true;
        return isNamespaceDeclared(tag.getParentTag(), namespace);
    }
@SuppressWarnings({"SimplifiableIfStatement"})
    private static boolean isNamespaceDeclared(@Nullable XmlTag tag, String namespace)