static <A extends JToggleButton> A addToButtonGroup(ButtonGroup group, A btn) { swing { group.add(btn); } ret btn; }