ArrangementSectionRule (@Nullable String start, @Nullable String end, @NotNull List<? extends StdArrangementMatchRule> rules) { final List<StdArrangementMatchRule> matchRules = new ArrayList<>(); if (StringUtil.isNotEmpty(start)) { matchRules.add(createSectionRule(start, START_SECTION)); } matchRules.addAll(rules); if (StringUtil.isNotEmpty(end)) { matchRules.add(createSectionRule(end, END_SECTION)); } return new ArrangementSectionRule(start, end, matchRules); }