void () { doTest("<selection>@SuppressWarnings(\"zz\")\n" + "public class Foo { }</selection>", psiFile -> { final VirtualFile vFile = psiFile.getVirtualFile(); assert vFile != null : psiFile; FileEditorManager.getInstance(getProject()).closeFile(vFile); delete(vFile); return false; }); }