String (@NotNull BundledFileTemplate template) { final String url = template.toString(); String path = StringUtil.substringBefore(url, "fileTemplates"); assert path != null : "Template URL doesn't contain 'fileTemplates' directory."; if (path.startsWith(URLUtil.JAR_PROTOCOL)) { path = StringUtil.trimEnd(path, URLUtil.JAR_SEPARATOR); } return PathUtil.getFileName(path); }