in src/main/java/com/intellij/internal/statistic/eventLog/validator/rules/utils/ValidationSimpleRuleFactory.java [107:126]
private FUSRule createExpressionValidationRule(@NotNull String rule, @NotNull EventGroupContextData contextData) {
StringBuilder sb = new StringBuilder();
for (String node : parseSimpleExpression(rule)) {
if (isExpressionNode(node)) {
FUSRule fusRule = createRule(unwrapRuleNode(node), contextData);
if (fusRule instanceof FUSRegexpAwareRule) {
sb.append("(");
sb.append(((FUSRegexpAwareRule)fusRule).asRegexp());
sb.append(")");
}
else {
return UNPARSED_EXPRESSION;
}
}
else {
sb.append(RegexpValidationRule.escapeText(node));
}
}
return new RegexpValidationRule(sb.toString());
}