code: private void setupRadioButtonEventHandlers() {
      for (int i = 0; i < radioButtons.size(); i++) {
        final int j = i;
        radioButtons.get(j).setOnAction(event -> field.select(j));
      }
    }
docs: Sets up bindings for all radio buttons.