private Schema removeFirstEntryWithFullyEmittedDependencies(List<Schema> moveOutwards, List<Schema> ordered) {
        for (Schema move : moveOutwards) {
            if (allDependenciesAlreadyEmitted(ordered, move)) {
                moveOutwards.remove(move);
                return move;
            }
        }
        return null;
    }
Removes and returns the first search from the move list which can now be added, or null if none
config-model/src/main/java/com/yahoo/schema/derived/SearchOrderer.java