public boolean equals(Object obj) {
    // Generated by IntelliJ
    if (this == obj) return true;
    if (!(obj instanceof ElementFilter)) return false;

    final ElementFilter filter = (ElementFilter)obj;

    //noinspection StringEquality
    if (!((name == filter.name) || (name != null && ((Object)name).equals(filter.name)))) return false;
    if (!((namespace == filter.namespace) || (namespace != null && ((Object)namespace).equals(filter.namespace)))) return false;

    return true;
  }
public boolean equals(Object obj)