question: public static Map < GraphNode , Point2D > translateNodes ( Collection < GraphNode > moveNodes , Map < GraphNode , Point2D > positions , Translater translater ) { Map < GraphNode , Point2D > result = Maps . newHashMapWithExpectedSize ( moveNodes . size ( ) ) ; for ( GraphNode node : moveNodes ) { Point2D location = translateNode ( node , positions , translater ) ; if ( null == location ) { continue ; } result . put ( node , translater . translate ( location ) ) ; } return result ; }
target:  Compute positions of moveNodes using the supplied translator. A new map of node positions is provided.  Move nodes without a position are omitted from the result.