void (@NotNull PsiElement element, @NotNull String newName, @NotNull Map<PsiElement, String> allRenames) { LOG.assertTrue(element instanceof PropertyForRename); final List<? extends PsiElement> elementsToRename = ((PropertyForRename)element).getElementsToRename(); for (PsiElement psiElement : elementsToRename) { if (psiElement instanceof GrField) { allRenames.put(psiElement, newName); } else if (psiElement instanceof GrMethod) { if (GroovyPropertyUtils.isSimplePropertyGetter((PsiMethod)psiElement)) { allRenames.put(psiElement, RenamePropertyUtil.getGetterNameByOldName(newName, ((PsiMethod)psiElement).getName())); } else { allRenames.put(psiElement, GroovyPropertyUtils.getSetterName(newName)); } } } allRenames.remove(element); }