void (@NotNull AnActionEvent e) { VcsLogUiProperties properties = e.getData(VcsLogInternalDataKeys.LOG_UI_PROPERTIES); e.getPresentation().setEnabled(properties != null); if (properties != null && properties.exists(MainVcsLogUiProperties.BEK_SORT_TYPE)) { String sortName = GraphSortPresentationUtil.getLocalizedName(properties.get(MainVcsLogUiProperties.BEK_SORT_TYPE)); String description = VcsLogBundle.message("vcs.log.action.intellisort.title", sortName); e.getPresentation().setDescription(description); e.getPresentation().setText(description); } }