List<String> (String filePath) { String content; try { content = FileUtil.loadFile(new File(filePath), true); } catch (IOException e) { throw new RuntimeException(e); } List<String> files = TestFiles.createTestFiles("", content, new TestFiles.TestFileFactoryNoModules<>() { @NotNull @Override public String create(@NotNull String fileName, @NotNull String text, @NotNull Directives directives) { int firstLineEnd = text.indexOf('\n'); return StringUtil.trimTrailing(text.substring(firstLineEnd + 1)); } }); Assert.assertEquals("Exactly two files expected: ", 2, files.size()); return files; }