question: private Iterable < String > distinctNames ( Iterable < InetSocketAddress > addresses ) { Set < String > result = new HashSet < > ( ) ; for ( InetSocketAddress address : addresses ) { result . add ( name ( address ) ) ; } return result ; }
target:  Returns set with unique names.