List<String> (@NotNull List<String> fileTemplates, @NotNull HgVersion currentVersion) { final boolean supported = currentVersion.isBuiltInFunctionSupported(); return ContainerUtil.map(fileTemplates, s -> supported ? "{join(" + s + ",'" + HgChangesetUtil.FILE_SEPARATOR + "')}" : "{" + s + "}"); }