code: function returnArgumentHasLeadingComment(options, argument) {
    if (hasLeadingOwnLineComment(options.originalText, argument, options)) {
      return true;
    }
  
    if (hasNakedLeftSide(argument)) {
      let leftMost = argument;
      let newLeftMost;
      while ((newLeftMost = getLeftSide(leftMost))) {
        leftMost = newLeftMost;
  
        if (hasLeadingOwnLineComment(options.originalText, leftMost, options)) {
          return true;
        }
      }
    }
  
    return false;
  }
docs: This recurses the return argument, looking for the first token (the leftmost leaf node) and, if it (or its parents) has any leadingComments, returns true (so it can be wrapped in parens).