void () { Condition<? super PluginId> condition = pluginEnabler::isDisabled; boolean notificationValid = enabled ? !ContainerUtil.exists(pluginIds, condition) : ContainerUtil.and(pluginIds, condition); if (!notificationValid) { switchNotification.expire(); } Balloon balloon = switchNotification.getBalloon(); if (balloon == null || balloon.isDisposed()) { ApplicationManager.getApplication().invokeLater(() -> { DisabledPluginsState.Companion.removeDisablePluginListener(this); }); } }