private int InternalGetStackSizeOnLeave(HashSet<CodePath> checkedPaths /* avoid recursive calculation */)
{
if (checkedPaths.Contains(this))
return 0;
checkedPaths.Add(this);
var size = StackDelta;
if (IncomingPaths.Count > 0)
size += IncomingPaths[0].InternalGetStackSizeOnLeave(checkedPaths);
return size;
}