GroovyGenerationInfo<GrMethod> () { PsiField field = getElement(); if (field.hasModifierProperty(PsiModifier.FINAL)) { return null; } final GrMethod method = createMethodIfNotExists(field, GroovyPropertyUtils.generateSetterPrototype(field)); return method == null ? null : new GroovyGenerationInfo<>(method); }