in src/utils/astUtilityFunctions.ts [99:106]
export function findClosestAncestorStateNode(node: ASTNode): PropertyASTNode | undefined {
if (isPropertyNode(node) && (node as PropertyASTNode).keyNode.value === 'States') {
return node
} else if (!node.parent) {
return undefined
}
return findClosestAncestorStateNode(node.parent)
}