code: FunctionTypeBuilder inferReturnType(
        @Nullable JSDocInfo info, boolean fromInlineDoc) {
      if (info != null) {
        JSTypeExpression returnTypeExpr =
            fromInlineDoc ? info.getType() : info.getReturnType();
        if (returnTypeExpr != null) {
          returnType = returnTypeExpr.evaluate(templateScope, typeRegistry);
          returnTypeInferred = false;
        }
      }
  
      return this;
    }
docs: Infer the return type from JSDocInfo.
  @param fromInlineDoc Indicates whether return type is inferred from inline
  doc attached to function name