@Override
    public @NotNull JComponent createCustomComponent(@NotNull Presentation presentation, @NotNull String place) {
      JButton button = new JButton(presentation.getText()) {
        @Override
        public Dimension getPreferredSize() {
          Dimension size = super.getPreferredSize();
          if (myPreferredHeightProvider != null) size.height = myPreferredHeightProvider.compute();
          return size;
        }
      };

      button.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
          performAction(button, place, presentation);
        }
      });

      return button;
    }
@Override
    public @NotNull JComponent createCustomComponent(@NotNull Presentation presentation, @NotNull String place)