if (a.isDefined(IconAttribute))
  public static Icon getIcon(AttributeSet a)  {    if (a.isDefined(IconAttribute))      return (Icon) a.getAttribute(IconAttribute);    else      return (Icon) null;  } 