Collection<Object[]> () { File pluginRoot = new File(PluginPathManager.getPluginHomePath("git4idea")); File dataDir = new File(new File(pluginRoot, "testData"), "repo"); File[] testCases = dataDir.listFiles(FileFilters.DIRECTORIES); return ContainerUtil.map(testCases, file -> new Object[] { file.getName(), file }); }