void (@NotNull PsiElement element, TextRange rangeWithinElement, String replacementText) { final RangeMarker key = myDocument.createRangeMarker(rangeWithinElement.shiftRight(element.getTextRange().getStartOffset())); ConstantNode value = new ConstantNode(replacementText); replaceElement(key, value); }