@Override
    public boolean equals(Object o) {
      if (this == o) return true;
      if (!(o instanceof TextIcon icon)) return false;

      if (myWidth != icon.myWidth) return false;
      if (!myComponent.equals(icon.myComponent)) return false;
      if (!myStr.equals(icon.myStr)) return false;

      return true;
    }
@Override
    public boolean equals(Object o)