public void setRules(@NotNull final List<NestingRule> rules) {
    myState.myRules.clear();
    myState.myRules.addAll(rules);
    myModCount++;
  }
public void setRules(@NotNull final List<NestingRule> rules)