private void validateStackComponentDataType(DataType dataType) {
		if (DataTypeComponent.usesZeroLengthComponent(dataType)) {
			throw new IllegalArgumentException(
				"Zero-length datatype not permitted: " + dataType.getName());
		}
		if (dataType instanceof BitFieldDataType) {
			throw new IllegalArgumentException("Bitfield not permitted: " + dataType.getName());
		}
	}
If a stack variable is defined in the editor at the specified ordinal, this retrieves the
editor element containing that stack variable. <BR>

@param ordinal the ordinal
@return the stack editor's element at the ordinal or null if an undefined location within
the bounds of the stack.
@throws IndexOutOfBoundsException if the ordinal is out of bounds
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/stackeditor/StackFrameDataType.java