See #17798
const fiber = getFiber(node);
  if (fiber === null) {
    return null;
  }
  const owner = fiber._debugOwner;
  if (owner && owner.type) {
    const ownerName = owner.type.displayName || owner.type.name;
    return ownerName || null;
  }
  return null;
}
let lastFoundInternalKey = null;
function getFiber(node) {
  if (
    lastFoundInternalKey !== null &&
    node.hasOwnProperty(lastFoundInternalKey)
  ) {
    return (node: any)[lastFoundInternalKey];
  }
  let internalKey = Object.keys(node).find(
    key => key.indexOf('__reactInternalInstance') === 0,
  );
  if (internalKey) {
    lastFoundInternalKey = internalKey;
    return (node: any)[lastFoundInternalKey];
  }
  return null;
}
function findTipPos(dims, bounds, tipSize) {