String (GroovyPsiElement place, String initialName, ExpressionContext context) { int count = 0; String name = initialName; Class[] classes = {PsiMethod.class}; final Map<PsiMethod, String> setters = context.getSetters(); while (setters.containsValue(name) || ResolveUtil.resolveExistingElement( place, new MethodResolverProcessor(name, place, false, null, null, null, true), classes) != null) { name = initialName + count; count++; } return name; }