in src/main/java/com/intellij/internal/statistic/eventLog/validator/rules/utils/ValidationSimpleRuleFactory.java [129:158]
private FUSRule createExpressionUtilRule(@NotNull List<String> nodes) {
FUSRule fusRule = null;
String suffix = "";
String prefix = "";
boolean utilNodeFound = false;
for (String string : nodes) {
if (isExpressionNode(string)) {
if (!string.contains(UTIL_PREFIX)) return UNPARSED_EXPRESSION;
FUSRule simpleRule = createRule(unwrapRuleNode(string), EventGroupContextData.EMPTY);
if (simpleRule instanceof UtilValidationRule) {
fusRule = simpleRule;
}
else {
return UNPARSED_EXPRESSION;
}
utilNodeFound = true;
}
else {
if (utilNodeFound) {
suffix = string;
}
else {
prefix = string;
}
}
}
if (fusRule == null) return UNPARSED_EXPRESSION;
return new ExpressionValidationRule(fusRule, prefix, suffix);
}