VirtualFile () { VirtualFile from = LocalFileSystem.getInstance().refreshAndFindFileByPath(dataDir); Assert.assertNotNull("Cannot find testdata directory " + dataDir, from); try { UsefulTestCase.refreshRecursively(from); VirtualFile tempDir = getSourceRoot(); if (targetDir.length() > 0) { tempDir = findOrCreateChildDir(tempDir, targetDir); } VfsUtil.copyDirectory(this, from, tempDir, filter); return tempDir; } catch (IOException e) { throw new RuntimeException(e); } }