result.append(" effective: [");
EffectiveStyleAppender styleAppender = new EffectiveStyleAppender(result);
ArrayListMultimap<String, IStyle<?>> ruleToStyle = ArrayListMultimap.create();
if(effective instanceof StyleSetWithTracking) {
StyleSetWithTracking trackingSet = (StyleSetWithTracking) effective;
for(IStyle<?> style : effective.getStyles()) {
String n = trackingSet.getStyleSource(style).getRuleName();
if(n == null || n.length() < 1)
throw new RuntimeException("Rule without name");
ruleToStyle.put(n, style);
}
}