@Override
	public int getChoice(Settings settings) {
		Long lvalue = settings.getLong(settingName);

		int value = (lvalue != null) ? (int) (long) lvalue : defaultValue.ordinal();
		return Math.min(Math.max(value, 0), values.length - 1);
	}
returns the Enum's ordinal using the Enum's string representation.

@param stringValue Enum's string rep
@return integer index of the Enum
Ghidra/Framework/Docking/src/main/java/ghidra/docking/settings/JavaEnumSettingsDefinition.java