void (@NotNull StringBuilder builder, @NotNull ExpressionContext context, @NotNull GrExpression condition, GrCaseSection @NotNull [] caseSections) { final GrExpression ref; if (condition instanceof GrReferenceExpression) { ref = condition; } else { final String varName = generateConditionVar(builder, context, condition); ref = GroovyPsiElementFactory.getInstance(context.project).createExpressionFromText(varName); } final GrExpression[] args = {ref}; generateIfFromCaseSection(builder, context, caseSections, 0, List.of(), args); }