@Nonnull
	static ArrayValue of(@Nonnull Type type, @Nonnull Nullness nullness) {
		String descriptor = type.getDescriptor();
		return switch (descriptor) {
			case "[Z" -> VAL_BOOLEANS;
			case "[C" -> VAL_CHARS;
			case "[B" -> VAL_BYTES;
			case "[S" -> VAL_SHORTS;
			case "[I" -> VAL_INTS;
			case "[F" -> VAL_FLOATS;
			case "[D" -> VAL_DOUBLES;
			case "[J" -> VAL_LONGS;
			default -> new ArrayValueImpl(type, nullness);
		};
	}
@param type
		Array type.
@param nullness
		Array null state.

@return Array value of the given type.
recaf-core/src/main/java/software/coley/recaf/util/analysis/value/ArrayValue.java