void () { String file = createFile("res/A.java", "xxx"); String snippetFile = createFile("res/snippet-files/A.java", "XXX"); JpsModule m = addModule("m"); m.addSourceRoot(JpsPathUtil.pathToUrl(PathUtil.getParentPath(file)), JavaResourceRootType.RESOURCE); rebuildAllModules(); assertOutput(m, fs().file("A.java", "xxx").dir("snippet-files").file("A.java", "XXX")); }