YAML: how to handle whitespace left behind after mutation operations

My plugin has several YAML mutation tasks that it can complete, including removal of individual YAML key-values or entire groups of properties, moving groups of properties from one area to another, etc.

When I run these mutation operations, PsiWhitespace elements are left behind, and I’m struggling to figure out how to remove these, so that blank elements aren’t left behind. My plugin has a full facade structure that wraps these YAML elements, and yet even rewriting the PSI tree without the whitespace and blank lines, running the code formatter after an operation, searching for neighboring nodes that are a combination of PsiWhitespace and PsiEol or two PsiEol nodes in a row… I can’t get the YAML PSI tree to remove these whitespaces.

Is there a proper way to do this without corrupting the PSI tree?