// Javadoc inherited.
public Styles copy() {
StylesImpl newStyles = new StylesImpl(pseudoStyleEntity, container);
if (values != null) {
newStyles.values = new MutablePropertyValuesImpl(values);
}
if (nestedStylesList != null) {
newStyles.nestedStylesList = new ArrayList();
for (int i = 0; i < nestedStylesList.size(); i++) {
Styles styles = (Styles) nestedStylesList.get(i);