private static void paint2D(RectanglePainter2D p, Graphics2D g, int x, int y, int width, int height, @Nullable Integer round) {
    Double arc = round == null || round <= 0 ? null : Double.valueOf(round);
    Object valueAA = arc != null ? RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_DEFAULT;
    p.paint(g, x, y, width, height, arc, StrokeType.INSIDE, 1, valueAA);
  }
private static void paint2D(RectanglePainter2D p, Graphics2D g, int x, int y, int width, int height, @Nullable Integer round)