private StdArrangementSettings createSettings() {
   final List<ArrangementGroupingRule> groupingRules = myGroupingRulesPanel.getRules();
   final List<ArrangementSectionRule> sections = myMatchingRulesPanel.getSections();
   final Collection<StdArrangementRuleAliasToken> tokens = myMatchingRulesPanel.getRulesAliases();
   if (tokens != null) {
     return new StdArrangementExtendableSettings(groupingRules, sections, tokens);
   }
   return new StdArrangementSettings(groupingRules, sections);
 }
  @Override
  protected void resetImpl(CodeStyleSettings settings) {
    StdArrangementSettings s = getSettings(settings);
    if (s == null) {
      myGroupingRulesPanel.setRules(null);
      myMatchingRulesPanel.setSections(null);
    } else {
      List<ArrangementGroupingRule> groupings = s.getGroupings();
      myGroupingRulesPanel.setRules(ContainerUtilRt.newArrayList(groupings));
      myMatchingRulesPanel.setSections(copy(s.getSections()));
      if (s instanceof StdArrangementExtendableSettings) {
        myMatchingRulesPanel.setRulesAliases(
            ((StdArrangementExtendableSettings) s).getRuleAliases());
      }

      if (myForceArrangementPanel != null) {
        myForceArrangementPanel.setSelectedMode(
            settings.getCommonSettings(myLanguage).FORCE_REARRANGE_MODE);
      }
    }
  }