public static @Nullable Point getLocation(@Nullable Element element) {
    return element == null ? null : getLocation(element, X, Y);
  }
public static @Nullable Point getLocation(@Nullable Element element)