void (@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); } }