class PermissionParser extends Parser<T> {

    @Override
    protected void parse(T type) {
        var permissions = new HashMap<String, Object>();
        
        for (var permission : environment.resolver.all(type, Permission.class)) {
            check(type, permission);
            parse(permission, permissions);
        }
        
        environment.mappings.put("permissions", permissions);
    }

    public  PermissionParser(Environment<T> environment);

}