void (@NotNull final CodeInsightTestFixture fixture) { ApplicationManager.getApplication().runWriteAction(() -> { final VirtualFile testRoot = fixture.getTempDirFixture().getFile("."); assert testRoot != null : "No temp path?"; try { for (final VirtualFile child : testRoot.getChildren()) { child.delete(null); } } catch (final IOException e) { throw new AssertionError(String.format("Failed to delete files in %s : %s", testRoot, e)); } }); }