boolean (@NotNull ArrangementSettingsToken token, @Nullable ArrangementMatchCondition current) { if (SUPPORTED_TYPES.contains(token)) { return true; } ArrangementSettingsToken type = null; if (current != null) { type = ArrangementUtil.parseType(current); } if (type == null) { type = NO_TYPE; } if (SUPPORTED_ORDERS.contains(token)) { return !TYPES_WITH_DISABLED_ORDER.contains(type); } if (StdArrangementTokens.Regexp.NAME.equals(token)) { return !TYPES_WITH_DISABLED_NAME_MATCH.contains(type); } Set<ArrangementSettingsToken> modifiers = MODIFIERS_BY_TYPE.get(type); return modifiers != null && modifiers.contains(token); }