void (@NotNull ArrangementAtomMatchCondition condition) { if (StdArrangementTokens.Regexp.NAME.equals(condition.getType())) { myNamePattern = condition.getValue().toString(); return; } else if (StdArrangementTokens.Regexp.XML_NAMESPACE.equals(condition.getType())) { myNamespacePattern = condition.getValue().toString(); } else if (StdArrangementTokens.Regexp.TEXT.equals(condition.getType())) { myText = condition.getValue().toString(); } Object v = condition.getValue(); final ArrangementSettingsToken type = condition.getType(); if (type instanceof StdArrangementSettingsToken) { //Process any StdArrangementSettingsToken. No need to change it when new types of tokens will be processed. addToContext((StdArrangementSettingsToken)type, condition); } }