@Override
    public int length() {
      int length = 0;
      for (int nameId : nameIds) {
        CharSequence name = nameByNameId(nameId);
        length += name.length();
      }
      return length + nameIds.length - 1;
    }
@Override
    public int length()