if (box == null) { XRLog.render(Level.WARNING, "null box"); return; } if (box.margin == null) { XRLog.render(Level.WARNING, "translate insets: null margin on box of type " + box.getClass().getName() + " content " + (box.getContent() == null ? "null" : box.getContent().getClass().getName())); return; } if (box.border == null) { XRLog.render(Level.WARNING, "translate insets: null border on box of type " + box.getClass().getName() + " content " + (box.getContent() == null ? "null" : box.getContent().getClass().getName())); return; } if (box.padding == null) { XRLog.render(Level.WARNING, "translate insets: null padding on box of type " + box.getClass().getName() + " content " + (box.getContent() == null ? "null" : box.getContent().getClass().getName())); return; }
    public void translateInsets(Box box) {        translate(box.margin.left + box.border.left + box.padding.left,                box.margin.top + box.border.top + box.padding.top);    }