List<TestFile> ( @NotNull File file, @NotNull String expectedText, boolean parseDirectivesPerFiles, @NotNull TargetBackend backend ) { List<TestFile> testFiles = TestFiles.createTestFiles(file.getName(), expectedText, new TestFiles.TestFileFactoryNoModules<>() { @NotNull @Override public TestFile create(@NotNull String fileName, @NotNull String text, @NotNull Directives directives) { return new TestFile(fileName, text, directives); } }, false, parseDirectivesPerFiles); if (InTextDirectivesUtils.isDirectiveDefined(expectedText, "WITH_HELPERS")) { testFiles.add(new TestFile("CodegenTestHelpers.kt", TestHelperGeneratorKt.createTextForCodegenTestHelpers(backend))); } return testFiles; }