List<KtFile> (@NotNull List<TestFile> files, @NotNull Project project) { Collections.sort(files); List<KtFile> ktFiles = new ArrayList<>(files.size()); for (TestFile file : files) { if (file.name.endsWith(".kt") || file.name.endsWith(".kts")) { // `rangesToDiagnosticNames` parameter is not-null only for diagnostic tests, it's using for lazy diagnostics String content = CheckerTestUtil.INSTANCE.parseDiagnosedRanges(file.content, new ArrayList<>(0), null); ktFiles.add(KotlinTestUtils.createFile(file.name, content, project)); } } return ktFiles; }