private static @NotNull Insets calcInsets(GraphicsConfiguration gc) {
    return Toolkit.getDefaultToolkit().getScreenInsets(gc);
  }
private static @NotNull Insets calcInsets(GraphicsConfiguration gc)