case IModelElement.SOURCE_MODULE:
return new RenameSupport(new RenameSourceModuleProcessor((ISourceModule) element), newName, flags);
case IModelElement.TYPE:
return new RenameSupport(new RenameTypeProcessor((IType) element), newName, flags);
case IModelElement.METHOD:
return new RenameSupport(new RenameMethodProcessor((IMethod) element), newName, flags);
case IModelElement.FIELD:
if (((IField) element).getDeclaringType() == null) {
return new RenameSupport(new RenameLocalVariableProcessor((IField) element), newName, flags);
} else {
if (PHPFlags.isConstant(((IField) element).getFlags())) {