public static boolean intersectsVisibleScreen(@NotNull Window window) {
    if (StartupUiUtil.isWaylandToolkit()) return true; // No window coordinates in Wayland
    return window.getGraphicsConfiguration().getBounds().intersects(window.getBounds());
  }
public static boolean intersectsVisibleScreen(@NotNull Window window)