void (@NotNull final PsiFile file) { CommandProcessor.getInstance().executeCommand(myFixture.getProject(), () -> ApplicationManager.getApplication().runWriteAction(() -> { for (final PsiElement element : file.getChildren()) { element.delete(); } }), null, null); }