TextRange () { final String value = myAttribute.getValue(); final int p = value.indexOf(':'); if (p == -1) { return TextRange.from(0, value.length()); } else if (p == value.length() - 1) { return TextRange.from(0, 0); } else { return new TextRange(p + 1, value.length()); } }