public SignednessFormatMode getFormatMode(Settings settings) {
		if (settings == null) {
			return defaultFormat;
		}
		Long value = settings.getLong(SIGN_FORMAT);
		if (value == null || value < 0 || value >= choices.length) {
			return defaultFormat;
		}
		int format = (int) value.longValue();

		SignednessFormatMode mode = SignednessFormatMode.DEFAULT;
		try {
			mode = SignednessFormatMode.parse(format);
		}
		catch (IllegalArgumentException iae) {
			// ignored
		}

		return mode;
	}
Returns the format based on the specified settings
@param settings the instance settings or null for default value.
@return the format mode
Ghidra/Framework/Docking/src/main/java/ghidra/docking/settings/IntegerSignednessFormattingModeSettingsDefinition.java