code: private static List<BuiltInQProfile.Builder> toQualityProfileBuilders(Map.Entry<String, Map<String, BuiltInQualityProfile>> rulesProfilesByLanguageAndName,
      Map<RuleKey, RuleDefinitionDto> rulesByRuleKey) {
      String language = rulesProfilesByLanguageAndName.getKey();
      // use a LinkedHashMap to keep order of insertion of RulesProfiles
      Map<String, BuiltInQProfile.Builder> qualityProfileBuildersByName = new LinkedHashMap<>();
      for (BuiltInQualityProfile builtInProfile : rulesProfilesByLanguageAndName.getValue().values()) {
        qualityProfileBuildersByName.compute(
          builtInProfile.name(),
          (name, existingBuilder) -> updateOrCreateBuilder(language, existingBuilder, builtInProfile, rulesByRuleKey));
      }
      return ImmutableList.copyOf(qualityProfileBuildersByName.values());
    }
docs: Creates {@link BuiltInQProfile.Builder} for each unique quality profile name for a given language.
  Builders will have the following properties populated:
  <ul>
  <li>{@link BuiltInQProfile.Builder#language language}: key of the method's parameter</li>
  <li>{@link BuiltInQProfile.Builder#name name}: {@link RulesProfile#getName()}</li>
  <li>{@link BuiltInQProfile.Builder#declaredDefault declaredDefault}: {@code true} if at least one RulesProfile
  with a given name has {@link RulesProfile#getDefaultProfile()} is {@code true}</li>
  <li>{@link BuiltInQProfile.Builder#activeRules activeRules}: the concatenate of the active rules of all
  RulesProfile with a given name</li>
  </ul>