}
@Override
protected RenameModifications computeRenameModifications()
throws CoreException {
RenameModifications result = new RenameModifications();
if (modelElement instanceof ILocalVariable) {
result.rename((ILocalVariable)modelElement, new RenameArguments(getNewElementName(), getUpdateReferences()));
} else if (modelElement instanceof IField) {
// TODO: add switching method in RenameModifications
result.rename((IField)modelElement, new RenameArguments(getNewElementName(), getUpdateReferences()));
}
return result;
}