TemplateImpl (@NotNull String key, boolean forceSingleTag) { StringBuilder builder = new StringBuilder("<"); builder.append(key).append('>'); if (!forceSingleTag && !HtmlUtil.isSingleHtmlTag(key, false)) { builder.append("$END$</").append(key).append('>'); } return new TemplateImpl("", builder.toString(), ""); }