JComponent (@NotNull Presentation presentation, @NotNull String place) { final JLabel label = new JLabel(DiffBundle.message("compare.by")); label.setDisplayedMnemonicIndex(0); myButton = (JButton)super.createCustomComponent(presentation, place).getComponent(0); return JBUI.Panels.simplePanel(myButton) .addToLeft(label) .withBorder(JBUI.Borders.empty(2, 6, 2, 0)); }