void (@NotNull PsiMethod methodPrototype, @NotNull String newName, @Nullable String newPropertyName, @NotNull String oldParameterName, @NotNull JavaCodeStyleManager manager, @NotNull Map<PsiElement, String> allRenames) { allRenames.put(methodPrototype, newName); if (newPropertyName != null) { final PsiParameter[] parameters = methodPrototype.getParameterList().getParameters(); LOG.assertTrue(parameters.length > 0, methodPrototype.getName()); PsiParameter parameter = parameters[0]; if (shouldRenameSetterParameter(manager, oldParameterName , methodPrototype)) { allRenames.put(parameter, manager.propertyNameToVariableName(newPropertyName, VariableKind.PARAMETER)); } } }