@Override
  public void removeListener(@NotNull Window window) {
    if (window instanceof RootPaneContainer container && container.getRootPane() != null) {
      FullScreenUtilities.removeFullScreenListenerFrom(window, myListener);
    }
  }
@Override
  public void removeListener(@NotNull Window window)