@Override
	public PropertyEditor getPropertyEditor(String optionName) {
		if (!Swing.isSwingThread()) {
			throw new IllegalStateException("This method must be called from the Swing thread");
		}
		Option option = getOption(optionName, OptionType.NO_TYPE, null);
		PropertyEditor editor = option.getPropertyEditor();
		if (editor == null) {
			editor = findPropertyEditor(option.getOptionType().getValueClass());
		}
		return editor;
	}
Sets the name for this Options object.  Used when updating old options names to new names.
@param newName the new name for this options object.
Ghidra/Framework/Gui/src/main/java/ghidra/framework/options/AbstractOptions.java