final void update(Component component) {
    Rectangle bounds = component.getBounds();
    myFullScreen = component instanceof IdeFrame
                   && FrameInfoHelper.Companion.isFullScreenSupportedInCurrentOs$intellij_platform_ide_impl()
                   && ((IdeFrame)component).isInFullScreen();
    myMaximized = FrameInfoHelper.isMaximized(getExtendedState(component));
    if (myBounds != null) {
      if (myFullScreen || myMaximized) {
        if (bounds.contains(myBounds.x + myBounds.width / 2, myBounds.y + myBounds.height / 2)) {
          return; // preserve old bounds for the maximized frame if its state can be restored
        }
      }
    }
    myBounds = bounds;
  }
final void update(Component component)