void (Control.Painter painter, Control control, boolean leaf, int... expected) { for (int depth : new int[]{Integer.MIN_VALUE, -1, -10}) { assertRendererOffset(painter, control, depth, leaf); } assertRendererOffset(painter, control, 0, leaf, 0); for (int depth = 0; depth < expected.length; depth++) { assertRendererOffset(painter, control, depth + 1, leaf, expected[depth]); } }