List<TestDataFile> (@NotNull DataContext dataContext, @NotNull Project project, boolean shouldGuess) { return ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> { List<TestDataFile> fileNames = tryFindTestDataFiles(dataContext); if (fileNames.isEmpty() && shouldGuess) { //noinspection RedundantTypeArguments return ReadAction.<List<TestDataFile>, RuntimeException>compute(() -> { PsiMethod method = findTargetMethod(dataContext); return method == null ? Collections.emptyList() : TestDataGuessByExistingFilesUtil.guessTestDataName(method); }); } return fileNames; }, DevKitBundle.message("testdata.searching"), true, project); }