private void onFocusLost(FocusEvent e) {
    if (StartupUiUtil.isWaylandToolkit()) {
      // In Wayland focus is always lost when the window is being moved.
      return;
    }
    Component oppositeComponent = e.getOppositeComponent();
    if (!isHintComponent(oppositeComponent) && !UIUtil.haveCommonOwner(this, oppositeComponent)) {
      sendStatisticsAndClose();
    }
  }
private void onFocusLost(FocusEvent e)