void (@NotNull AnActionEvent e) { super.update(e); var presentation = e.getPresentation(); presentation.setEnabledAndVisible(ApplicationManager.getApplication().isUnitTestMode()); if (ActionPlaces.isPopupPlace(e.getPlace())) { presentation.setIcon(null); } var pane = getCurrentProjectViewPane(e); if (pane == null) { return; } presentation.setEnabledAndVisible(pane.supportsSortKey(mySortKey)); }