private static void initFillPanel(@NotNull JPanel p, @NotNull ButtonGroup buttonGroup, @NotNull Disposable disposable) {
    Fill[] values = Fill.values();
    String[] names = new String[values.length];
    BufferedImage image = sampleImage();
    for (int i = 0; i < names.length; i++) {
      names[i] = StringUtil.toLowerCase(values[i].name().replace('_', '-'));
    }
    Color color = getSelectionBackground();
    p.setLayout(new GridLayout(1, values.length, 1, 1));
    for (int i = 0; i < values.length; i ++) {
      JRadioButton button = new JRadioButton(names[i], values[i] == Fill.SCALE);
      buttonGroup.add(button);
      button.setToolTipText(StringUtil.capitalize(button.getText().replace('-', ' ')));
      JBPanelWithEmptyText clickablePanel = addClickablePanel(p, button, color);
      createTemporaryBackgroundTransform(
        clickablePanel, image, values[i], IdeBackgroundUtil.Anchor.CENTER, 1f, JBUI.insets(2), disposable);
    }
  }
private static void initFillPanel(@NotNull JPanel p, @NotNull ButtonGroup buttonGroup, @NotNull Disposable disposable)