GrVariable (@NotNull GrIntroduceContext context, @NotNull GroovyIntroduceVariableSettings settings) { GrVariableDeclaration varDecl = generateDeclaration(context, settings); if (context.getStringPart() != null) { final GrExpression ref = context.getStringPart().replaceLiteralWithConcatenation(DUMMY_NAME); return doProcessExpression(context, settings, varDecl, new PsiElement[]{ref}, ref, true); } else { final GrExpression expression = context.getExpression(); assert expression != null; return doProcessExpression(context, settings, varDecl, context.getOccurrences(), expression, true); } }