@Override
    public void delayedApplicationDeactivated(@NotNull Window ideFrame) {
      Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
      if (owner != null && ComponentUtil.findUltimateParent(owner) == ideFrame) {
        myLastFocusedAtDeactivation.put(ideFrame, owner);
      }
    }
@Override
    public void delayedApplicationDeactivated(@NotNull Window ideFrame)