code: @Override
      protected Cooccurrence filterCooccurence(JCas jCas,
              Annotation enclosingAnnot, Annotation annot1, Annotation annot2,
              String[] ids1, String[] ids2) {
  
          if (distance(annot1, annot2) < maximumDistance) {
              return super.filterCooccurence(jCas, enclosingAnnot, annot1,
                      annot2, ids1, ids2);
          } else {
              return null;
          }
      }
docs: Adds all cooccurrences (no filtering). Subclasses can implement finer
  filtering.
  
  @param jCas
  @param enclosingAnnot
  @param annot1
  @param annot2
  @param ids1
  @param ids2