@Override
	public void close() {
		super.close();

		// clear out the listener for the options
		for (Option option : options) {
			option.setOptionListener(null);
		}
	}
Constructs a new OptionsDialog for editing the options associated with a specific import format
such as PE, ELF, XML, etc.

@param originalOptions the list of options generated from the specific import format selected.
@param validator a callback for validating the options as they are set.
@param addressFactoryService a service for retrieving the AddressFactory if needed. This is
passed instead of an actual AddressFactory, because to get an AddressFactory, it might
require that a language be loaded or a program be opened and not all options require an
AddressFactory.  If null, address based options will not be available.
Ghidra/Features/Base/src/main/java/ghidra/app/util/OptionsDialog.java