if (this.myParameters.isVisibilityChanged()) {
SLinkOperations.setTarget(SNodeOperations.cast(this.myDeclaration, "jetbrains.mps.baseLanguage.structure.IVisible"), "visibility", SLinkOperations.getTarget(SNodeOperations.cast(this.myParameters.getDeclaration(), "jetbrains.mps.baseLanguage.structure.IVisible"), "visibility", true), true);
}
}
this.changeParameters();
<BUG>SLinkOperations.removeAllChildren(this.myDeclaration, "throwsItem");
for (SNode throwItem : ListSequence.fromList(SLinkOperations.getTargets(this.myParameters.getDeclaration(), "throwsItem", true))) {</BUG>
ListSequence.fromList(SLinkOperations.getTargets(this.myDeclaration, "throwsItem", true)).addElement(SNodeOperations.copyNode(throwItem));
}
for (SNode node : ListSequence.fromList(this.myUssages)) {

if (this.myParameters.isVisibilityChanged()) {
SLinkOperations.setTarget(SNodeOperations.cast(this.myDeclaration, "jetbrains.mps.baseLanguage.structure.IVisible"), "visibility", SLinkOperations.getTarget(SNodeOperations.cast(this.myParameters.getDeclaration(), "jetbrains.mps.baseLanguage.structure.IVisible"), "visibility", true), true);
}
}
this.changeParameters();
ListSequence.fromList(SLinkOperations.getTargets(this.myDeclaration, "throwsItem", true)).clear();
for (SNode throwItem : ListSequence.fromList(SLinkOperations.getTargets(this.myParameters.getDeclaration(), "throwsItem", true))) {
ListSequence.fromList(SLinkOperations.getTargets(this.myDeclaration, "throwsItem", true)).addElement(SNodeOperations.copyNode(throwItem));
}
for (SNode node : ListSequence.fromList(this.myUssages)) {
