void (@NotNull String relativePath, @NotNull String text, @NotNull VirtualFile dir, @NotNull Consumer<VirtualFile> fileConsumer) { final VirtualFile file = VfsTestUtil.createFile(dir, relativePath, text); try { fileConsumer.accept(file); } finally { VfsTestUtil.deleteFile(file); } }