private static Class<?> parseArrayItemClass(Type genericType) {
		String itemClassName = genericType.getTypeName();
		if (itemClassName.contains("<")) {
			itemClassName = itemClassName.substring(itemClassName.indexOf("<") + 1, itemClassName.indexOf(">"));
		}
		return switch (itemClassName) {
			case "java.lang.Integer" -> Integer.class;
			case "java.lang.Long" -> Long.class;
			case "java.lang.Boolean" -> Boolean.class;
			case "java.lang.Double" -> Double.class;
			case "java.lang.Float" -> Float.class;
			case "java.lang.String" -> String.class;
			default -> Object.class;
		};
	}
GraalVM native image compatible
@param genericType generic type
@return item class
src/main/java/org/mvnsearch/chatgpt/model/function/GPTFunctionUtils.java