@NotNull
    public static XmlDocument getDocument(@NotNull XmlElement element) {
        final XmlDocument document = PsiTreeUtil.getParentOfType(element, XmlDocument.class, false);
        assert document != null;
        return document;
    }
@NotNull
    public static XmlDocument getDocument(@NotNull XmlElement element)