code: public static void addMatchInformation(SaltProject p, MatchGroup matchGroup)
    {
      int matchIndex = 0;
      for (Match m : matchGroup.getMatches())
      {
        // get the corresponding SDocument of the salt project    
        SCorpusGraph corpusGraph = p.getCorpusGraphs().get(matchIndex);
        SDocument doc = corpusGraph.getDocuments().get(0);
  
        setMatchedIDs(doc.getDocumentGraph(), m);
  
        matchIndex++;
      }
    }
docs: Sets additional match (global) information about the matched nodes and
  annotations.
  
  This will add the {@link AnnisConstants#FEAT_MATCHEDIDS) to all {@link SDocument} elements of the
  salt project.
  
  @param p The salt project to add the features to.
  @param matchGroup A list of matches in the same order as the corpus graphs
  of the salt project.