void (PsiElement parentElement, PsiElement element, PsiElement anchor) { parentElement.addAfter(element, anchor); final PsiElement sibling = element.getPrevSibling(); if (sibling instanceof PsiWhiteSpace) parentElement.addAfter(sibling, anchor); // recycle whitespace }