FELIX-2138: The resolver should prefer required resources over optional resources to minimize the set of required resources