AttributedCharacterIterator (final AttributedCharacterIterator.Attribute[] attributes) { return execute(new Computable<AttributedCharacterIterator>() { @Override public AttributedCharacterIterator compute() { return myDelegate.getSelectedText(attributes); } }); }