@Override
  public void applicationDeactivated(@NotNull IdeFrame ideFrame) {
    if (ApplicationManager.getApplication().isDisposed()) {
      return;
    }

    // don't fire events when welcome screen is activated/deactivated
    if (ideFrame instanceof IdeFrameImpl) {
      LifecycleUsageTriggerCollector.onFrameDeactivated(ideFrame.getProject());
    }
    publisher.onFrameDeactivated();
  }
@Override
  public void applicationDeactivated(@NotNull IdeFrame ideFrame)