public static @Nullable Rectangle getBounds(@Nullable Element element) {
    return element == null ? null : getBounds(element, X, Y, WIDTH, HEIGHT);
  }
public static @Nullable Rectangle getBounds(@Nullable Element element)