if (LayoutUtil.isBlockLayout(box.getElement(), c)) {
if (box instanceof BlockBox) {
    public void paintChildren(Context c, Box box) {        if (box.isAnonymous()) {            return;        }        //TODO: wouldn't the box itself know if it was block layout?        if (LayoutUtil.isBlockLayout(box.getElement(), c)) {            super.paintChildren(c, box);        }    }