@Override
      public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
        HelpTooltip.enableTooltip(targetComponent);
        if (targetComponent instanceof Tree tree) {
          tree.unblockAutoScrollFromSource();
        }
        disposeMenu();
      }
@Override
      public void popupMenuWillBecomeInvisible(PopupMenuEvent e)