private Component getBooleanEditorComponent(Option option) {
		final SaveState state = option.getState();
		boolean defaultValue = (boolean) option.getValue();
		boolean initialState =
			state != null ? state.getBoolean(option.getName(), defaultValue) : defaultValue;
		option.setValue(initialState);
		GCheckBox cb = new GCheckBox();
		cb.setName(option.getName());
		cb.setSelected(initialState);
		cb.addItemListener(e -> {
			option.setValue(cb.isSelected());
			if (state != null) {
				state.putBoolean(option.getName(), cb.isSelected());
			}
		});
		return cb;
	}
Get the editor component for the specified option.
@param option option to be edited
@return option editor or null if prerequisite state not available to support
editor (e.g., Address or AddressSpace editor when {@link AddressFactoryService} 
is not available).
Ghidra/Features/Base/src/main/java/ghidra/app/util/OptionsEditorPanel.java