// Javadoc inherited.
public int getIndividualCost(MutableStylePropertySet required) {
int cost = 0;
for (int index = 0; index < group.length; index++) {
StyleProperty property = group[index];
if (required.contains(property)) {
// Calculate the cost of the property and it's concrete value.
StyleValue value = inputValues.getStyleValue(property);
value = getConcreteValue(index, value);
cost += property.getName().length();
cost += 1; // The ':'.
cost += value.getStandardCost();
if (isImportant(index)) {
cost += Priority.IMPORTANT.getStandardCost();
}