private static void fillRect(final Graphics2D g, final Rectangle2D r, final Color color) {
    g.setColor(color);
    g.fill(r);
  }
private static void fillRect(final Graphics2D g, final Rectangle2D r, final Color color)