docs: public static Annotation getAnnotatedChunk(CoreMap annotation, int tokenStartIndex, int tokenEndIndex)
    {
      Integer annoTokenBegin = annotation.get(CoreAnnotations.TokenBeginAnnotation.class);
      if (annoTokenBegin == null) { annoTokenBegin = 0; }
      List<CoreLabel> tokens = annotation.get(CoreAnnotations.TokensAnnotation.class);
      Annotation chunk = getAnnotatedChunk(tokens, tokenStartIndex, tokenEndIndex, annoTokenBegin);
      String text = annotation.get(CoreAnnotations.TextAnnotation.class);
      if (text != null) {
        annotateChunkText(chunk, annotation);
      } else {
        annotateChunkText(chunk, CoreAnnotations.TextAnnotation.class);
      }
      return chunk;
    }