void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(action == null ? button.isEnabled() : action.isEnabled()); if (!useTextFromAction) { e.getPresentation().setText(DialogWrapper.extractMnemonic(button.getText()).second); } }