private List < TypeDescription > filterRelevant ( TypeDescription typeDescription ) { List < TypeDescription > filtered = new ArrayList < TypeDescription > ( prioritizedInterfaces . size ( ) ) ; Set < TypeDescription > relevant = new HashSet < TypeDescription > ( typeDescription . getInterfaces ( ) . asErasures ( ) ) ; for ( TypeDescription prioritizedInterface : prioritizedInterfaces ) { if ( relevant . remove ( prioritizedInterface ) ) { filtered . add ( prioritizedInterface ) ; } } return filtered ; }
Filters the relevant prioritized interfaces for a given type i . e . finds the types that are directly declared on a given instrumented type .