code: private void validateFunctionJsDoc(Node n, JSDocInfo info) {
      if (info == null) {
        return;
      }
  
      if (info.containsFunctionDeclaration() && !info.hasType() && !isJSDocOnFunctionNode(n, info)) {
        // This JSDoc should be attached to a FUNCTION node, or an assignment
        // with a function as the RHS, etc.
  
        reportMisplaced(
            n,
            "function",
            "This JSDoc is not attached to a function node. " + "Are you missing parentheses?");
      }
    }
docs: Checks that JSDoc intended for a function is actually attached to a
  function.