String (TextContent text) { StringBuilder sb = new StringBuilder(text); for (int i = text.length(); i >= 0; i--) { if (text.hasUnknownFragmentsIn(TextRange.from(i, 0))) { sb.insert(i, "|"); } } return sb.toString(); }