function hasWithDefaults(node) {
  return (
    node.parent &&
    node.parent.type === 'CallExpression' &&
    node.parent.arguments[0] === node &&
    node.parent.callee.type === 'Identifier' &&
    node.parent.callee.name === 'withDefaults'
  )
}
Checks whether given defineProps call node has withDefaults.
@param {CallExpression} node The node of defineProps
@returns {node is CallExpression & { parent: CallExpression }}