package toolbox.common.workflow.event;

public interface EventSubscriber<T> {
    
    void handleEvent(T event);

}

package toolbox.common.workflow.event;

public interface EventSubscriber<T> {
    
    void handleEvent(T event);
    
    Class<T> supportedEvent();

}

Update EventSubscriber.java