Anchor annotations to closest ancestor with an ID