void (@NotNull final List<? extends NestingRule> rules) { final SortedMap<String, CombinedNestingRule> result = new TreeMap<>(); for (NestingRule rule : ContainerUtil.sorted(rules, RULE_COMPARATOR)) { final CombinedNestingRule r = result.get(rule.getParentFileSuffix()); if (r == null) { result.put(rule.getParentFileSuffix(), new CombinedNestingRule(rule.getParentFileSuffix(), rule.getChildFileSuffix())); } else { //noinspection StringConcatenationInLoop r.childSuffixes += "; " + rule.getChildFileSuffix(); } } myTable.getListTableModel().setItems(new ArrayList<>(result.values())); }