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);
  }
}

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 ) ; } }
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 .
