String (int composedIndex, @NotNull AttributedCharacterIterator text) { StringBuilder strBuf = new StringBuilder(); // create attributed string with no attributes for (char c = text.setIndex(composedIndex); c != CharacterIterator.DONE; c = text.next()) { strBuf.append(c); } return strBuf.toString(); }