public static bool isAllowedElement(IElement element) {
int type = element.Type;
if (type == Element.CHUNK || type == Element.PHRASE
|| type == Element.PARAGRAPH || type == Element.LIST
|| type == Element.YMARK || type == Element.PTABLE || type == Element.DIV) return true;
if (element is Image) return true;
return false;
}