if (box.isInlineElement() || !(box.content instanceof TextContent)) {
if(LayoutUtil.isBlockOrInlineElementBox(box)) {
    public static Border getMargin(Context c, Box box) {        //TODO: can this be removed?: if (LayoutUtil.isBlockOrInlineElementBox(c, box)) {        if (box.isInlineElement() || !(box.content instanceof TextContent)) {            if (box.margin == null) {                box.margin = c.getCurrentStyle().getMarginWidth();            }        }        return box.margin;    }