public static GenericOptionsComponent createOptionComponent(EditorState state) {
		if (state.supportsCustomOptionsEditor()) {
			return new CustomOptionComponent(state);
		}
		return new DefaultOptionComponent(state);
	}
A factory method to create new OptionComponents.
@param state The state that will be used to create the correct OptionComponent
@return the new OptionComponent.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/GenericOptionsComponent.java