void (Graphics2D g, int x, int y, int width, int height, int arc, @Nullable Paint fill, @Nullable Paint draw) { if (fill != null) { g.setPaint(fill); if (draw != null) { int sw = 1; // stroke width int dw = sw + sw; FILL.paint(g, x + sw, y + sw, width - dw, height - dw, arc > dw ? arc - dw : 0); } else { FILL.paint(g, x, y, width, height, arc); } } if (draw != null) { g.setPaint(draw); DRAW.paint(g, x, y, width, height, arc); } }