// PseudoClassSet then remove it, and merge with the current
// class set.
final int length = pseudoStyleEntities.size();
StatefulPseudoClassSet classSet = pseudoClass.getSet();
if (length > 0) {
PseudoStyleEntity previous = (PseudoStyleEntity)
pseudoStyleEntities.get(length - 1);
if (previous instanceof StatefulPseudoClassSet) {
StatefulPseudoClassSet previousPseudoClassSet =
(StatefulPseudoClassSet) previous;
pseudoStyleEntities.remove(length - 1);