private void addOutboundContentIdsToFilter(final ContentQuery.Builder builder) {
    if (contentQueryJson.getMustBeReferencedById() != null) {

      final ContentIds ids =
          this.contentService.getOutboundDependencies(contentQueryJson.getMustBeReferencedById());

      // TODO: no need to filter when we fix that removed content will be removed from references
      builder.filterContentIds(getExistingContentIds(ids));
    }
  }