private ConstructionHeuristicDecider buildDecider(HeuristicConfigPolicy configPolicy, Termination termination) {
ConstructionHeuristicForagerConfig foragerConfig_ = foragerConfig == null
? new ConstructionHeuristicForagerConfig() : foragerConfig;
ConstructionHeuristicForager forager = foragerConfig_.buildForager(configPolicy);
ConstructionHeuristicDecider decider = new ConstructionHeuristicDecider(termination, forager);
EnvironmentMode environmentMode = configPolicy.getEnvironmentMode();
if (environmentMode.isNonIntrusiveFullAsserted()) {
decider.setAssertMoveScoreFromScratch(true);
}
if (environmentMode.isIntrusiveFastAsserted()) {
decider.setAssertExpectedUndoMoveScore(true);
}
return decider;
}