void (@NotNull PsiElement first, @NotNull PsiElement last) { PyUtil.updateDocumentUnblockedAndCommitted(first, document -> { document.deleteString(first.getTextRange().getStartOffset(), last.getTextRange().getEndOffset()); }); }