docs: public void commitAndIndexIssues(DbSession dbSession, Collection<IssueDto> issues) {
      ListMultimap<String, EsQueueDto> itemsByIssueKey = ArrayListMultimap.create();
      issues.stream()
        .map(issue -> createQueueDto(issue.getKey(), ID_TYPE_ISSUE_KEY, issue.getProjectUuid()))
        // a mutable ListMultimap is needed for doIndexIssueItems, so MoreCollectors.index() is
        // not used
        .forEach(i -> itemsByIssueKey.put(i.getDocId(), i));
      dbClient.esQueueDao().insert(dbSession, itemsByIssueKey.values());
  
      dbSession.commit();
  
      doIndexIssueItems(dbSession, itemsByIssueKey);
    }