public static @Nullable Dimension getSize(@Nullable Element element) {
    return element == null ? null : getSize(element, WIDTH, HEIGHT);
  }
public static @Nullable Dimension getSize(@Nullable Element element)