void (@NotNull AnActionEvent event) { NavBarActionHandler handler = actionHandler(event); boolean isEnabled = handler != null && (isEnabledWithActivePopupSpeedSearch() || !handler.isNodePopupSpeedSearchActive()); event.getPresentation().setEnabled(isEnabled); }