@Override
  public boolean equals(Object obj) {
    if(!(obj instanceof TextAttributes)) {
      return false;
    }
    return Objects.equals(attrs, ((TextAttributes)obj).attrs);
  }
@Override
  public boolean equals(Object obj)