question: private Set < AnnotationMirror > findSmallestTypes ( Set < AnnotationMirror > inset ) { Set < AnnotationMirror > outset = AnnotationUtils . createAnnotationSet ( ) ; outset . addAll ( inset ) ; for ( AnnotationMirror a1 : inset ) { Iterator < AnnotationMirror > outit = outset . iterator ( ) ; while ( outit . hasNext ( ) ) { AnnotationMirror a2 = outit . next ( ) ; if ( a1 != a2 && isSubtype ( a1 , a2 ) ) { outit . remove ( ) ; } } } return outset ; }
target:  Remove all supertypes of elements contained in the set. 