private static void checkScreensNonEmpty(@NotNull Rectangle fromScreen, @NotNull Rectangle toScreen) {
    if (fromScreen.isEmpty()) {
      throw new IllegalArgumentException("Can't move from an empty screen: " + fromScreen);
    }
    if (toScreen.isEmpty()) {
      throw new IllegalArgumentException("Can't move to an empty screen: " + toScreen);
    }
  }
private static void checkScreensNonEmpty(@NotNull Rectangle fromScreen, @NotNull Rectangle toScreen)