static void addInterfaces(List<Class<?>> eventTypes, Class<?>[] interfaces) {
        for (Class<?> interfaceClass : interfaces) {
            if (!eventTypes.contains(interfaceClass)) {
                eventTypes.add(interfaceClass);
                addInterfaces(eventTypes, interfaceClass.getInterfaces());
            }
        }
    }
static void addInterfaces(List<Class<?>> eventTypes, Class<?>[] interfaces) {
        for (Class<?> interfaceClass : interfaces) {
            if (!eventTypes.contains(interfaceClass)) {
                eventTypes.add(interfaceClass);
                addInterfaces(eventTypes, interfaceClass.getInterfaces());
            }
        }
    }
static void addInterfaces ( List < Class < ? > > eventTypes , Class < ? > [ ] interfaces ) { for ( Class < ? > interfaceClass : interfaces ) { if ( ! eventTypes . contains ( interfaceClass ) ) { eventTypes . add ( interfaceClass ) ; addInterfaces ( eventTypes , interfaceClass . getInterfaces ( ) ) ; } } }
Recurses through super interfaces.
Recurses through super interfaces .