code: public void check(BioCDocument document) {
      String text = checkText(document);
      check(document, 0, text);
      for (BioCPassage passage : document.getPassages()) {
        check(passage, 0, text, document);
        for (BioCSentence sentence : passage.getSentences()) {
          check(sentence, 0, text, document, passage);
        }
      }
    }
docs: Checks text, annotations and relations of the document.
  
  @param document input document