class CandidateBuilder {

	Collection<Candidate> toCandidates(Iterable<LatticeMD> latticeMDs) {
		Collection<IntermediateCandidate> preCandidates = toIntermediateCandidates(latticeMDs);
		Collection<Candidate> candidates = minimizer.toCandidates(preCandidates);
		candidates.forEach(this::addToValidated);
		return candidates;
	}

}