code: private void updateTransition(Collection<Tile> resolved,
                                    Collection<Tile> toResolve,
                                    Tile tile,
                                    Tile neighbor,
                                    String neighborGroup,
                                    Transition newTransition)
      {
          if (!neighborGroup.equals(newTransition.getIn()))
          {
              updateTile(resolved, toResolve, tile, neighbor, newTransition);
          }
      }
docs: Update transition.
  
  @param resolved The resolved tiles.
  @param toResolve Tiles to resolve after.
  @param tile The tile reference.
  @param neighbor The neighbor reference.
  @param neighborGroup The neighbor group.
  @param newTransition The new transition.