void (@NotNull final AnActionEvent e) { final boolean enabled = e.getData(CommonDataKeys.PROJECT) != null; e.getPresentation().setEnabled(enabled); // see RIDER-15982 if (!ActionPlaces.isMainMenuOrActionSearch(e.getPlace())) { e.getPresentation().setText(ActionsBundle.messagePointer("action.ShowNavBar.ShortText")); } }