@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Action)) {
            return false;
        }

        Action that = (Action) o;
        return Objects.equals(this.resourcePattern, that.resourcePattern) &&
            Objects.equals(this.operation, that.operation) &&
            this.resourceReferenceCount == that.resourceReferenceCount &&
            this.logIfAllowed == that.logIfAllowed &&
            this.logIfDenied == that.logIfDenied;

    }
Number of times the resource being authorized is referenced within the request. For example, a single
request may reference `n` topic partitions of the same topic. Brokers will authorize the topic once
with `resourceReferenceCount=n`. Authorizers may include the count in audit logs.
clients/src/main/java/org/apache/kafka/server/authorizer/Action.java