public static @NotNull Point2D insets2offset(@Nullable Insets in) {
    return in == null ? new Point2D.Double(0, 0) : new Point2D.Double(in.left, in.top);
  }
public static @NotNull Point2D insets2offset(@Nullable Insets in)