docs: private List<ActiveRuleChange> removeActiveRulesOnStillExistingRepositories(DbSession dbSession, RegisterRulesContext recorder,
      List<RulesDefinition.ExtendedRepository> context) {
      List<String> repositoryKeys = context.stream()
        .map(RulesDefinition.ExtendedRepository::key)
        .collect(MoreCollectors.toList(context.size()));
  
      List<ActiveRuleChange> changes = new ArrayList<>();
      Profiler profiler = Profiler.create(Loggers.get(getClass()));
      recorder.getRemoved().forEach(rule -> {
        // SONAR-4642 Remove active rules only when repository still exists
        if (repositoryKeys.contains(rule.getRepositoryKey())) {
          profiler.start();
          changes.addAll(qProfileRules.deleteRule(dbSession, rule));
          profiler.stopDebug(format("Remove active rule for rule %s", rule.getKey()));
        }
      });
      return changes;
    }