public Type type() {
        return type;
    }
This identifies a particular event. It is used to disambiguate events via {@link #hashCode()} and
{@link #equals(Object)} and can be used in log messages when debugging.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEvent.java