@Override
 public void visit(Tree.DocLink that) {
   Declaration base = that.getBase();
   if (base != null) {
     visitIt(nameRegion(that, 0), base);
     List<Declaration> qualified = that.getQualified();
     if (qualified != null) {
       for (int i = 0; i < qualified.size(); i++) {
         visitIt(nameRegion(that, i + 1), qualified.get(i));
       }
     }
   }
 }
 @Override
 public void visit(Tree.DocLink that) {
   Declaration base = that.getBase();
   if (base != null) {
     if (base.equals(declaration)) {
       count++;
     } else {
       List<Declaration> qualified = that.getQualified();
       if (qualified != null) {
         if (qualified.contains(declaration)) {
           count++;
         }
       }
     }
   }
 }