void (GrParameter @NotNull [] parameters, @Nullable GrCodeBlock block, boolean shouldInsertReturnNull) { builder.append("{"); for (GrParameter parameter : parameters) { if (context.analyzedVars.toWrap(parameter)) { StringBuilder typeText = new StringBuilder().append(GroovyCommonClassNames.GROOVY_LANG_REFERENCE); GenerationUtil.writeTypeParameters(typeText, new PsiType[]{context.typeProvider.getParameterType(parameter)}, parameter, new GeneratorClassNameProvider()); builder.append("final ").append(typeText).append(' ').append(context.analyzedVars.toVarName(parameter)) .append(" = new ").append(typeText).append('(').append(parameter.getName()).append(");\n"); } } visitStatementOwner(block, shouldInsertReturnNull); builder.append("}\n"); }