void (@NotNull AnActionEvent event) { Presentation presentation = event.getPresentation(); if (!ApplicationInfo.contextHelpAvailable()) { presentation.setVisible(false); return; } if (ActionPlaces.isMainMenuOrActionSearch(event.getPlace())) { DataContext dataContext = event.getDataContext(); presentation.setEnabled(getHelpId(dataContext) != null); } else { presentation.setIcon(AllIcons.Actions.Help); presentation.setText(CommonBundle.getHelpButtonText()); } }