int (int offset) { if (StringUtil.startsWith(myNodeText, offset, "\\N{")) { final int rightBraceOffset = myNodeText.indexOf('}', offset + 3); return rightBraceOffset < 0 ? myNodeContentRange.getEndOffset() : rightBraceOffset + 1; } return offset; }