The name nextParentElements is not clear, and it contains a comment that appears to be incorrect. Determine what this method should do, and add comments/rename to make it more clear what it's purpose/contract is.
The name nextParentElements is not clear, and it contains a comment that appears to be incorrect. Determine what this method should do, and add comments/rename to make it more clear what it's purpose/contract is.