for (SNode elem : path) {
substituteRepresentative(elem, current);
}
}
}
<BUG>return getNameRepresentative(current);

}</BUG>
private void substituteRepresentative(SNode elem, SNode current) {
if (myRepresentatives.get(elem) == current) {

for (SNode elem : path) {
substituteRepresentative(elem, current);
}
}
}
assert getNameRepresentative(current) == current;
return current;
}
private void substituteRepresentative(SNode elem, SNode current) {
if (myRepresentatives.get(elem) == current) {
