public static boolean hasSpanAttributes(SComponent component) {  return component != null && (component.getBackground() != null || component.getForeground() != null || component.getFont() != null || component.getBorder() != null || component.getPreferredSize() != null) ;
public static boolean hasSpanAttributes(SComponent component) { return component != null && !component.getAttributes().isEmpty();
    public static boolean hasSpanAttributes(SComponent component)     {                  return component != null &&              (component.getBackground() != null ||                component.getForeground() != null ||               component.getFont() != null ||               component.getBorder() != null ||               component.getPreferredSize() != null)             ;     }