After trying to understand the logic, it does seem that you want a Set[RuleId] as paramater