protected static int getBitCount(Class<? extends Number> type) {
		if (type == Byte.class) {
			return Byte.SIZE;
		}
		if (type == Short.class) {
			return Short.SIZE;
		}
		if (type == Integer.class) {
			return Integer.SIZE;
		}
		if (type == Long.class) {
			return Long.SIZE;
		}
		throw new AssertionError();
	}
Get the number of bits in the integral type

@param type the type
@return the number of bits
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AbstractIntegerDataType.java