void (char markupChar, @NotNull String markupContent) { if (markupChar == 'U') { appendLink(markupContent); return; } switch (markupChar) { case 'I' -> appendTagPair(markupContent, "i"); case 'B' -> appendTagPair(markupContent, "b"); case 'C' -> appendTagPair(markupContent, "code"); default -> myResult.append(StringUtil.escapeXmlEntities(markupContent)); } }