int (@NotNull String nodeText, int offset, int endOffset) { if (StringUtil.startsWith(nodeText, offset, "\\N{")) { final int rightBraceOffset = nodeText.indexOf('}', offset + 3); return rightBraceOffset < 0 ? endOffset : rightBraceOffset + 1; } return offset; }