generate JavaDoc and comment EventCollector class