private static boolean isFullScreen(@NotNull Window window) {
    return window instanceof IdeFrame &&
           FrameInfoHelper.Companion.isFullScreenSupportedInCurrentOs$intellij_platform_ide_impl() &&
           ((IdeFrame)window).isInFullScreen();
  }
private static boolean isFullScreen(@NotNull Window window)