code: private boolean isInterface(Node n) {
      if (!n.isFunction()) {
        return false;
      }
  
      JSDocInfo jsDoc = NodeUtil.getBestJSDocInfo(n);
      return jsDoc != null && jsDoc.isInterface();
    }
docs: Whether a function is an interface constructor, or a method on an interface.