rewriter.markAsModified(decl, modified);
GroupDescription description= new GroupDescription("Change visibility of field"); result.add(description); rewriter.markAsModified(decl, modified, description);
	private List addGetterSetterChanges(CompilationUnit root, ASTRewrite rewriter) throws CoreException {		List result= new ArrayList(2);		AST ast= root.getAST();		if (!JdtFlags.isPrivate(fField)) {			FieldDeclaration decl= (FieldDeclaration)ASTNodes.getParent(fFieldDeclaration, FieldDeclaration.class);			FieldDeclaration modified= ast.newFieldDeclaration(ast.newVariableDeclarationFragment());			modified.setModifiers(Modifier.PRIVATE);			rewriter.markAsModified(decl, modified);		}				TypeDeclaration type= (TypeDeclaration)ASTNodes.getParent(fFieldDeclaration, TypeDeclaration.class);		int position= 0;		int numberOfMethods= 0;		List members= type.bodyDeclarations();		for (Iterator iter= members.iterator(); iter.hasNext();) {			BodyDeclaration element= (BodyDeclaration)iter.next();			if (element.getNodeType() == ASTNode.METHOD_DECLARATION) {				if (fInsertionIndex == -1) {					break;				} else if (fInsertionIndex == numberOfMethods) {					position++;					break;				}				numberOfMethods++;				}			position++;		}		GroupDescription description;		if (!JdtFlags.isFinal(fField)) {			description= new GroupDescription(RefactoringCoreMessages.getString("SelfEncapsulateField.add_setter")); //$NON-NLS-1$			result.add(description);			members.add(position++, createSetterMethod(ast, rewriter));		}		description= new GroupDescription(RefactoringCoreMessages.getString("SelfEncapsulateField.add_getter")); //$NON-NLS-1$		result.add(description);		members.add(position, createGetterMethod(ast, rewriter));		return result;	}