code: private Set<Impact> collectResult(
        List<Impact> singleEntityChanges,
        List<Impact> wholeRepoActions,
        Set<String> dependentEntityIds) {
      Set<String> wholeRepoIds =
          union(
              wholeRepoActions.stream().map(Impact::getEntityTypeId).collect(toImmutableSet()),
              dependentEntityIds);
  
      ImmutableSet.Builder<Impact> result = ImmutableSet.builder();
      result.addAll(wholeRepoActions);
      dependentEntityIds.stream().map(Impact::createWholeRepositoryImpact).forEach(result::add);
      singleEntityChanges
          .stream()
          .filter(action -> !wholeRepoIds.contains(action.getEntityTypeId()))
          .forEach(result::add);
      return result.build();
    }
docs: Combines the results.
  
  @param singleEntityChanges {@link Impact}s for changes made to specific Entity instances
  @param wholeRepoActions {@link Impact}s for changes made to entire repositories
  @param dependentEntityIds {@link Impact}s for entitytypes that are dependent on one or more of
  the changes
  @return Set with the {@link Impact}s