code: public void check(BioCStructure structure, int offset, String text, BioCStructure... parents) {
      BioCStructure[] path = new BioCStructure[parents.length + 1];
      System.arraycopy(parents, 0, path, 0, parents.length);
      path[path.length - 1] = structure;
      String location = log(path);
      checkAnnotations(structure, offset, text, location);
      checkRelations(structure, location);
    }
docs: Check the annotation and relation in the structure.
  
  @param structure the specified structure
  @param offset    the offset of this structure
  @param text      the text that annotations should match
  @param parents   the path from root until this structure (not included