code: private void convert(List<JqassistantRules> rules, RuleSource ruleSource, RuleSetBuilder builder) throws RuleException {
          for (JqassistantRules rule : rules) {
              List<SeverityRuleType> severityRuleTypes = rule.getConceptOrConstraintOrGroup();
              for (SeverityRuleType severityRuleType : severityRuleTypes) {
                  String id = severityRuleType.getId();
                  if (severityRuleType instanceof ConceptType) {
                      Concept concept = createConcept(id, ruleSource, (ConceptType) severityRuleType);
                      builder.addConcept(concept);
                  } else if (severityRuleType instanceof ConstraintType) {
                      Constraint constraint = createConstraint(id, ruleSource, (ConstraintType) severityRuleType);
                      builder.addConstraint(constraint);
                  } else if (severityRuleType instanceof GroupType) {
                      Group group = createGroup(id, ruleSource, (GroupType) severityRuleType);
                      builder.addGroup(group);
                  }
              }
          }
      }
docs: Converts a list of {@link JqassistantRules} to a rule set.
  
  @param rules
  The {@link JqassistantRules}.
  @throws RuleException
  If rules are not consistent.