ASTNode (ASTNode first, ASTNode last, ASTNode anchor, Boolean before) { final ASTNode node = super.addInternal(first, last, anchor, before); final PsiElement sibling = getNextSibling(); if (sibling != null && sibling.getText().contains("\n")) { sibling.replace(GroovyPsiElementFactory.getInstance(getProject()).createWhiteSpace()); } return node; }