List<TestDataFile> (PsiMethod method, boolean collectByExistingFiles) { List<TestDataFile> fileNames = null; String testDataPath = TestDataLineMarkerProvider.getTestDataBasePath(method.getContainingClass()); if (testDataPath != null) { fileNames = new TestDataReferenceCollector(testDataPath, method.getName().substring(4)).collectTestDataReferences(method, collectByExistingFiles); } if (collectByExistingFiles && (fileNames == null || fileNames.isEmpty())) { fileNames = new ArrayList<>(); fileNames.addAll(TestDataGuessByExistingFilesUtil.collectTestDataByExistingFiles(method, testDataPath)); fileNames.addAll(TestDataGuessByTestDiscoveryUtil.collectTestDataByExistingFiles(method)); } return fileNames == null ? Collections.emptyList() : fileNames; }