void (@NotNull AnActionEvent e) { var visible = RevealFileAction.isSupported(); e.getPresentation().setVisible(visible); if (visible) { var file = getFile(e); e.getPresentation().setEnabled(file != null); var isPopup = List.of(ActionPlaces.PROJECT_VIEW_POPUP, ActionPlaces.EDITOR_TAB_POPUP, ActionPlaces.BOOKMARKS_VIEW_POPUP).contains(e.getPlace()); e.getPresentation().setText(ActionsBundle.message(isPopup ? "action.ShowFilePath.popup" : "action.ShowFilePath.text")); } }