VirtualFile (@NotNull String path) { String[] parts = path.split(GROUP_FILES_SEPARATOR); if (parts.length != 2) { return null; } String beforePath = parts[0]; String afterPath = parts[1]; if (StringUtil.isEmpty(beforePath) || StringUtil.isEmpty(afterPath)) { return null; } LocalFileSystem localFileSystem = LocalFileSystem.getInstance(); VirtualFile beforeFile = localFileSystem.refreshAndFindFileByPath(beforePath); VirtualFile afterFile = localFileSystem.refreshAndFindFileByPath(afterPath); if (beforeFile == null || afterFile == null) { return null; } return new TestDataGroupVirtualFile(beforeFile, afterFile); }