protected Iterator<RankProfile.RankSetting> matchingRankSettingsIterator(
            Schema schema, RankProfile.RankSetting.Type type)
    {
        List<RankProfile.RankSetting> someRankSettings = new java.util.ArrayList<>();

        for (RankProfile profile : rankProfileRegistry.rankProfilesOf(schema)) {
            for (Iterator<RankProfile.RankSetting> j = profile.declaredRankSettingIterator(); j.hasNext(); ) {
                RankProfile.RankSetting setting = j.next();
                if (setting.getType().equals(type)) {
                    someRankSettings.add(setting);
                }
            }
        }
        return someRankSettings.iterator();
    }
Returns an iterator of all the rank settings with given type in all the rank  profiles in this search
definition.
config-model/src/main/java/com/yahoo/schema/processing/Processor.java