void (@NotNull AnActionEvent e) { e.getPresentation().setIcon(ExperimentalUI.isNewUI() ? AllIcons.Toolbar.Expand : AllIcons.Actions.FindAndShowNextMatches); if (ApplicationManager.getApplication().isHeadlessEnvironment()) { e.getPresentation().setEnabledAndVisible(false); return; } e.getPresentation().setEnabledAndVisible(isTabListAvailable(e)); }