private void pruneOverrides(Element parent, List<Element> children, Context context) {
        checkConsistentInheritance(children, context);
        pruneNonMatching(parent, children);
        retainMostSpecific(parent, children, context);
    }
Prune overrides from parent according to deploy override rules.

@param parent parent {@link Element} above children.
@param children children where one {@link Element} will remain as the overriding element
@param context current context with instance, environment, region and cloud
config-application-package/src/main/java/com/yahoo/config/application/OverrideProcessor.java