ActionButton (JComponent component, @NonNls @NotNull String bundleKey) { String text = TextWithMnemonic.parse(FindBundle.message(bundleKey)).getText(); return ContainerUtil.find(UIUtil.findComponentsOfType(component, ActionButton.class), button -> { return text.equals(button.getAction().getTemplatePresentation().getText()); }); }