boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SeverityBasedTextAttributes that = (SeverityBasedTextAttributes)o; return myAttributes.equals(that.myAttributes) && myType.equals(that.myType); }