* @return An {@link ImmutableStylerList}.
*/
private ImmutableStylerList createOrderedStylerList(List stylers) {
// Sort the stylers by specificity.
Collections.sort(stylers, STYLER_SPECIFICITY_COMPARATOR);
MutableStylerList list = new MutableStylerListImpl();
for (Iterator iterator = stylers.iterator(); iterator.hasNext();) {
Styler styler = (Styler) iterator.next();
list.append(styler);
}
return list.createImmutableStylerList();
}