void (@NotNull WorkingCopyFormat format, @NotNull JPanel panel, @NotNull GridBagConstraints gb) { JRadioButton button = new JRadioButton(getFormatText(format)); button.putClientProperty("format", format); panel.add(button, gb); gb.gridy += 1; formatGroup.add(button); formatButtons.add(button); }