presto-matching/src/main/java/io/prestosql/matching/Match.java/Match/equals
class Match:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Match match = (Match) o;
        return Objects.equals(captures, match.captures);
    }