void (final @NotNull String newWhiteSpaceText, final @NotNull ASTNode holder, final @NotNull TextRange whiteSpaceRange) { final CharTable charTable = SharedImplUtil.findCharTableByTree(holder); StringBuilder newText = createNewLeafChars(holder, whiteSpaceRange, newWhiteSpaceText); LeafElement newElement = Factory.createSingleLeafElement(holder.getElementType(), newText, charTable, holder.getPsi().getManager()); holder.getTreeParent().replaceChild(holder, newElement); }