docs: public Weighting createTurnWeighting(Graph graph, Weighting weighting, TraversalMode tMode) {
          FlagEncoder encoder = weighting.getFlagEncoder();
          if (encoder.supports(TurnWeighting.class) && !tMode.equals(TraversalMode.NODE_BASED))
              return new TurnWeighting(weighting, (TurnCostExtension) graph.getExtension());
          return weighting;
      }