void () { createClass("foo"); final PsiFile file = myContainingFile; final Editor editor = openEditor("foo.java"); new ReformatCodeProcessor(myProject, file, null, false).run(); undo(editor); assertFileDoesNotExist("foo", myRoot); }