StdArrangementMatchRule (boolean byName, ArrangementSettingsToken @NotNull ... tokens) { final List<ArrangementAtomMatchCondition> conditions = new ArrayList<>(); for (ArrangementSettingsToken token : tokens) { conditions.add(new ArrangementAtomMatchCondition(token)); } final StdArrangementEntryMatcher matcher = new StdArrangementEntryMatcher(new ArrangementCompositeMatchCondition(conditions)); return byName ? new StdArrangementMatchRule(matcher, BY_NAME) : new StdArrangementMatchRule(matcher); }