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