code: void setCurrent(TreePath path, DocCommentTree comment) {
          currPath = path;
          currDocComment = comment;
          currElement = trees.getElement(currPath);
          currOverriddenMethods = ((JavacTypes) types).getOverriddenMethods(currElement);
  
          AccessKind ak = AccessKind.PUBLIC;
          for (TreePath p = path; p != null; p = p.getParentPath()) {
              Element e = trees.getElement(p);
              if (e != null && e.getKind() != ElementKind.PACKAGE) {
                  ak = min(ak, AccessKind.of(e.getModifiers()));
              }
          }
          currAccess = ak;
      }
docs: Set the current declaration and its doc comment.