question: public static < T > boolean contains ( Iterator < T > iterator , T element ) { if ( iterator != null ) { while ( iterator . hasNext ( ) ) { T candidate = iterator . next ( ) ; if ( ObjectUtils . nullSafeEquals ( candidate , element ) ) return true ; } } return false ; }
target:  Check whether the given Iterator contains the given element.