static boolean isPrimitive(ClassAccessor<?> clazz) {
        if (clazz.subclassOf(String.class))
            return true;
        if (clazz.subclassOf(int.class))
            return true;
        if (clazz.subclassOf(long.class))
            return true;
        if (clazz.subclassOf(double.class))
            return true;
        if (clazz.subclassOf(List.class))
            return true;
        return false;
    }