if (LayoutUtil.isBlockLayout(box.getElement(), c)) {
if (box.getContent() != null && !(box.getContent() instanceof TextContent)) {
    public void paintComponent(Context c, Box box) {        if (box.isAnonymous()) {            paintInlineContext(c, box);            return;        }        //TODO: wouldn't the box itself know if it contained a block layout?        if (LayoutUtil.isBlockLayout(box.getElement(), c)) {            super.paintComponent(c, box);            return;        }        paintInlineContext(c, box);    }