GrExpression (@NotNull GrIntroduceContext context, @NotNull GrVariable variable) { final GrExpression initializer = context.getStringPart() != null ? context.getStringPart().createLiteralFromSelected() : context.getExpression(); final GrExpression dummyInitializer = variable.getInitializerGroovy(); assert dummyInitializer != null; return dummyInitializer.replaceWithExpression(initializer, true); }