code: public boolean matchesTypeAndContent(final MarkupTraceEvent event) {
          if (this == event) {
              return true;
          }
          if (event == null) {
              return false;
          }
          if (this.eventType == null) {
              if (event.eventType != null) {
                  return false;
              }
          } else if (!this.eventType.equals(event.eventType)) {
              return false;
          }
          if (this.contents == null) {
              if (event.contents != null) {
                  return false;
              }
          } else if (!Arrays.equals(this.contents, event.contents)) {
              return false;
          }
          return true;
      }
docs: <p>
  Checks whether two events are equal, but only comparing their types and contents, not the lines
  and columns in which they appeared.
  </p>
  
  @param event the event this object will be matched for equality to.
  @return true if both objects match type and content, false if not.