int indent= StubUtility.getIndentUsed(parentType) + 1;
int indent= StubUtility.getIndentUsed(field);
	private void generateStubs(IField field, IProgressMonitor monitor) throws JavaModelException, OperationCanceledException {		try {			monitor.beginTask(CodeManipulationMessages.getFormattedString("AddGetterSetterOperation.processField", field.getElementName()), 2); //$NON-NLS-1$				fSkipAllFinalSetters= false;			fSkipAllExisting= false;				String fieldName= field.getElementName();			String accessorName= evalAccessorName(fieldName);			String argname= getArgumentName(accessorName);						boolean isStatic= Flags.isStatic(field.getFlags());			String typeName= Signature.toString(field.getTypeSignature());						IType parentType= field.getDeclaringType();						String lineDelim= StubUtility.getLineDelimiterUsed(parentType);			int indent= StubUtility.getIndentUsed(parentType) + 1;						// test if the getter already exists			String getterName= "get" + accessorName; //$NON-NLS-1$			IMethod existing= JavaModelUtil.findMethod(getterName, new String[0], false, parentType);			if (!(existing != null &&  querySkipExistingMethods(existing))) {							// create the getter stub				StringBuffer buf= new StringBuffer();				buf.append("/**\n"); //$NON-NLS-1$				buf.append(" * Gets the "); buf.append(argname); buf.append(".\n"); //$NON-NLS-1$ //$NON-NLS-2$				buf.append(" * @return Returns a "); buf.append(typeName); buf.append('\n'); //$NON-NLS-1$				buf.append(" */\n"); //$NON-NLS-1$				buf.append("public "); //$NON-NLS-1$				if (isStatic) {					buf.append("static "); //$NON-NLS-1$				}				buf.append(typeName);				buf.append(' '); buf.append(getterName);				buf.append("() {\nreturn "); buf.append(fieldName); buf.append(";\n}\n"); //$NON-NLS-2$ //$NON-NLS-1$								IJavaElement sibling= null;				if (existing != null) {					sibling= StubUtility.findSibling(existing);					existing.delete(false, null);				}												String formattedContent= StubUtility.codeFormat(buf.toString(), indent, lineDelim) + lineDelim;				fCreatedAccessors.add(parentType.createMethod(formattedContent, sibling, true, null));			}						monitor.worked(1);												String setterName= "set" + accessorName; //$NON-NLS-1$			String[] args= new String[] { field.getTypeSignature() };								// test if the setter already exists or field is final			boolean isFinal= Flags.isFinal(field.getFlags());			existing= JavaModelUtil.findMethod(setterName, args, false, parentType);			if (!(isFinal && querySkipFinalSetters(field)) && !(existing != null && querySkipExistingMethods(existing))) {				// create the setter stub				StringBuffer buf= new StringBuffer();				buf.append("/**\n"); //$NON-NLS-1$				buf.append(" * Sets the "); buf.append(argname); buf.append(".\n"); //$NON-NLS-1$ //$NON-NLS-2$				buf.append(" * @param "); buf.append(argname); buf.append(" The "); buf.append(argname); buf.append(" to set\n"); //$NON-NLS-3$ //$NON-NLS-1$ //$NON-NLS-2$				buf.append(" */\n"); //$NON-NLS-1$				buf.append("public "); //$NON-NLS-1$				if (isStatic) {					buf.append("static "); //$NON-NLS-1$				}				buf.append("void "); buf.append(setterName); //$NON-NLS-1$				buf.append('('); buf.append(typeName); buf.append(' '); 				buf.append(argname); buf.append(") {\n"); //$NON-NLS-1$				if (argname.equals(fieldName)) {					if (isStatic) {						buf.append(parentType.getElementName());						buf.append('.');					} else {						buf.append("this."); //$NON-NLS-1$					}				}				buf.append(fieldName); buf.append("= "); buf.append(argname); buf.append(";\n}\n"); //$NON-NLS-1$ //$NON-NLS-2$								IJavaElement sibling= null;				if (existing != null) {					sibling= StubUtility.findSibling(existing);					existing.delete(false, null);				}								String formattedContent= StubUtility.codeFormat(buf.toString(), indent, lineDelim) + lineDelim;				fCreatedAccessors.add(parentType.createMethod(formattedContent, sibling, true, null));			}		} finally {			monitor.done();		}	}