function isRefInit(data) {
  const init = data && data.variableDeclarator && data.variableDeclarator.init
  if (!init) {
    return false
  }
  return data.defineChain.includes(/** @type {any} */ (init))
}
Checks whether the given identifier reference has been initialized with a ref object.
@param {RefObjectReferenceForIdentifier | null} data
@returns {data is RefObjectReferenceForIdentifier}