code: private static Map<Transition, Collection<TileRef>> getTransitions(MapTile map)
      {
          final Map<Transition, Collection<TileRef>> transitions = new HashMap<>();
          final MapTransitionExtractor extractor = new MapTransitionExtractor(map);
          for (int ty = 1; ty < map.getInTileHeight() - 1; ty++)
          {
              for (int tx = 1; tx < map.getInTileWidth() - 1; tx++)
              {
                  final Tile tile = map.getTile(tx, ty);
                  if (tile != null)
                  {
                      checkTransition(transitions, extractor, tile);
                  }
              }
          }
          return transitions;
      }
docs: Get map tile transitions.
  
  @param map The map reference.
  @return The transitions found with their associated tiles.