@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++;
         }
       }
     }
   }
 }
 @Override
 public void visit(Tree.DocLink that) {
   super.visit(that);
   // TODO: copy/paste from EnterAliasRefactoring
   Declaration base = that.getBase();
   if (base != null && dec.equals(base)) {
     Region region = DocLinks.nameRegion(that, 0);
     change.addEdit(new ReplaceEdit(region.getOffset(), region.getLength(), dec.getName()));
   }
 }