private void eventOccurred(IEventData data,EventType type){
  if (supportedEvents == null || supportedEvents.contains(type)) {
    eventListener.eventOccurred(data,type);
  }
}

private void eventOccurred ( IEventData data , EventType type ) { if ( supportedEvents == null || supportedEvents . contains ( type ) ) { eventListener . eventOccurred ( data , type ) ; } }
this is a proxy to pass only those events to the event listener which are supported by it .
