void (boolean aStatic, PsiParameter @NotNull [] parameters, @NotNull PsiParameter parameter, final GroovyPsiElement place) { //method body myBuffer.append("{\n"); //arg initialization myContext.myUsedVarNames.add("propOwner"); final GrExpression[] args = generateArguments(parameters, place); new ExpressionGenerator(myBuffer, myContext).invokeMethodOn( mySetter, aStatic ? null : GroovyPsiElementFactory.getInstance(myContext.project).createExpressionFromText("propOwner", place), args, GrNamedArgument.EMPTY_ARRAY, GrClosableBlock.EMPTY_ARRAY, PsiSubstitutor.EMPTY, place ); myBuffer.append(";\n"); myBuffer.append("return ").append(parameter.getName()).append(";\n"); myBuffer.append("}\n"); }