PsiElement () { //return new GrAccessorMethodImpl(myProperty, myIsSetter, getName()); //rename refactoring may create a copy using this method, add it to a class to check for conflicts, and then remove this copy. final String modifiers = getModifierList().getText(); final String params; if (myIsSetter) { params="("+myProperty.getName()+")"; } else { params="()"; } return GroovyPsiElementFactory.getInstance(getProject()).createMethodFromText(modifiers+" "+getName()+params+"{}"); }