}
// Set coref chain
Map<Integer, CorefChain> corefChains = new HashMap<Integer, CorefChain>();
for (CoreNLPProtos.CorefChain chainProto : proto.getCorefChainList()) {
CorefChain chain = fromProto(chainProto, ann);
corefChains.put(chain.getChainID(), chain);
}
if (!corefChains.isEmpty()) { ann.set(CorefChainAnnotation.class, corefChains); }
// Set dependency graphs
// We need to wait until here, since this is the first time we see tokens