Collection<ArrangementEntryMatcher> () { List<ArrangementEntryMatcher> result = new ArrayList<>(myMatchers); Collection<ArrangementAtomMatchCondition> entryTokens = context.get(StdArrangementTokenType.ENTRY_TYPE); if (!entryTokens.isEmpty()) { result.add(new ByTypeArrangementEntryMatcher(entryTokens)); } Collection<ArrangementAtomMatchCondition> modifierTokens = context.get(StdArrangementTokenType.MODIFIER); if (!modifierTokens.isEmpty()) { result.add(new ByModifierArrangementEntryMatcher(modifierTokens)); } if (myNamePattern != null) { result.add(new ByNameArrangementEntryMatcher(myNamePattern)); } if (myNamespacePattern != null) { result.add(new ByNamespaceArrangementEntryMatcher(myNamespacePattern)); } if (myText != null) { result.add(new ByTextArrangementEntryMatcher(myText)); } return result; }