void (@NotNull PsiElement element, TextRange rangeWithinElement, Expression expression) { final RangeMarker key = myDocument.createRangeMarker(rangeWithinElement.shiftRight(element.getTextRange().getStartOffset())); replaceElement(key, expression); }