docs: public static int permissionList2Id(List<Permission> permissions){
          int id = 0;
          if(permissions != null && ! permissions.isEmpty()){
              for (Permission p : permissions) {
                  id += p.getId();
              }
          }
          return id;
      }