private Component buildOptionGroupPanel(List<Option> optionGroup) {
		JPanel panel = new JPanel(new BorderLayout());

		JPanel innerPanel = buildInnerOptionsPanel(optionGroup);
		panel.add(innerPanel, BorderLayout.CENTER);

		if (needsSelectAllDeselectAllButton(optionGroup)) {
			panel.add(buildSelectAllDeselectAllButtonPanel(innerPanel), BorderLayout.SOUTH);
		}

		panel.setBorder(createBorder(optionGroup.get(0).getGroup()));
		return panel;
	}
Construct a new OptionsEditorPanel
@param options the list of options to be edited.
@param addressFactoryService a service for providing an appropriate AddressFactory if needed
for editing an options.  If null, address based options will not be available.
Ghidra/Features/Base/src/main/java/ghidra/app/util/OptionsEditorPanel.java