public int getIntValue() {
		BigInteger currentValue = getValue();
		if (currentValue == null) {
			return 0;
		}
		return currentValue.intValueExact();
	}
Returns the current value as an int.

<P>
If the field has no current value, 0 will be returned. If the value is bigger (or smaller)
than an int, it will be cast to an int.

<P>
If using this method, it is highly recommended that you set the max value to
{@link Integer#MAX_VALUE} or lower.

@return the current value as an int. Or 0 if there is no value
@throws ArithmeticException if the value in this field will not fit into an int
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/IntegerTextField.java