boolean (@NotNull GrExpression element, @NotNull ActionContext context) { if (element instanceof GrLiteral literal && literal.getValue() instanceof String) return true; if (!(element instanceof GrBinaryExpression binOp)) return false; if (binOp.getOperationTokenType() != GroovyTokenTypes.mPLUS) return false; var left = binOp.getLeftOperand(); var right = binOp.getRightOperand(); return right != null && isElementApplicable(left, context) && isElementApplicable(right, context); }