private static void append(StringBuilder sb, String name, Rectangle bounds) {
    sb.append(name);
    sb.append(": x=").append(bounds.x);
    sb.append(", y=").append(bounds.y);
    sb.append(", width=").append(bounds.width);
    sb.append(", height=").append(bounds.height);
    sb.append("\n");
  }
private static void append(StringBuilder sb, String name, Rectangle bounds)