void () { if (!isShouldShowNotification()) { return; } NotificationsConfigurationImpl.remove("SendUsagesStatistics"); Disposable disposable = Disposer.newDisposable(); Topics.subscribe(ApplicationActivationListener.TOPIC, disposable, new ApplicationActivationListener() { @Override public void applicationActivated(@NotNull IdeFrame ideFrame) { if (isEmpty(WindowManagerEx.getInstanceEx().getMostRecentFocusedWindow())) { ApplicationManager.getApplication().invokeLater(() -> showNotification()); Disposer.dispose(disposable); } } }); }