question: public static void translatePos ( Collection < GraphNode > moveNodes , Map < GraphNode , Point2D > positions , Translater intoRegion ) { for ( GraphNode node : moveNodes ) { Point2D location = translateNode ( node , positions , intoRegion ) ; if ( null == location ) { continue ; } positions . put ( node , location ) ; } }
target:  Update positions of moveNodes using the supplied translator. The map of node positions is changed in place.  Move nodes without a position are not added.