question: public StateInteractive extent_to_whole_connections ( ) { Set < BrdItem > selected_items = new TreeSet < BrdItem > ( ) ; for ( BrdItem curr_item : items_list ) { if ( curr_item instanceof BrdConnectable ) { selected_items . addAll ( curr_item . get_connection_items ( ) ) ; } } if ( selected_items . isEmpty ( ) ) { return return_state ; } items_list = selected_items ; actlog_start_scope ( LogfileScope . EXTEND_TO_WHOLE_CONNECTIONS ) ; filter ( ) ; i_brd . repaint ( ) ; return this ; }
target:  Select also all items belonging to any connection of the current selected items.