CharSequence (@NonNls String tagName, @NonNls String tagValue) { StringBuilder builder = new StringBuilder(); builder.append('<').append(tagName); if (StringUtil.isEmpty(tagValue)) { builder.append("/>"); } else { builder.append('>').append(getCDATAQuote(tagValue)).append("</").append(tagName).append('>'); } return builder; }