void (@NotNull Sdk sdk, @NotNull String rootRelativePath, @NotNull OrderRootType rootType, @NotNull Consumer<VirtualFile> rootConsumer) { final VirtualFile tempRoot = VfsTestUtil.createDir(sdk.getHomeDirectory().getParent().getParent(), rootRelativePath); try { runWithAdditionalRoot(sdk, tempRoot, rootType, rootConsumer); } finally { VfsTestUtil.deleteFile(tempRoot); } }