List<TextRange> () { final List<TextRange> result = new ArrayList<>(); for (int i = 0; i < myAttributesAndLookups.length - 1; i++) { result.add(TextRange.create(myAttributesAndLookups[i], myAttributesAndLookups[i + 1])); } return Collections.unmodifiableList(result); }