if (isStatic) {
if (isStatic)
	private void generateGetter(IField field) throws CoreException, OperationCanceledException {		String fieldName= field.getElementName();				boolean isStatic= Flags.isStatic(field.getFlags());		String typeName= Signature.toString(field.getTypeSignature());				IType parentType= field.getDeclaringType();				boolean addComments= fSettings.createComments;		String lineDelim= StubUtility.getLineDelimiterUsed(parentType);		int indent= StubUtility.getIndentUsed(field);		String getterName= GetterSetterUtil.getGetterName(field, null);		IMethod existingGetter= JavaModelUtil.findMethod(getterName, EMPTY, false, parentType);		boolean doCreateGetter= ((existingGetter == null) || !querySkipExistingMethods(existingGetter));		if (doCreateGetter) {						// create the getter stub			StringBuffer buf= new StringBuffer();			if (addComments) {				String comment= CodeGeneration.getMethodComment(field.getCompilationUnit(), parentType.getTypeQualifiedName('.'), getterName, EMPTY, EMPTY, field.getTypeSignature(), null, String.valueOf('\n'));				if (comment != null) {					buf.append(comment);					buf.append('\n');				}								}			buf.append(JdtFlags.getVisibilityString(fVisibility));			buf.append(' ');						if (isStatic) {				buf.append("static "); //$NON-NLS-1$			}			if (fSynchronized)				buf.append("synchronized "); //$NON-NLS-1$			if (fFinal)				buf.append("final "); //$NON-NLS-1$			if (fNative)				buf.append("native "); //$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 (existingGetter != null) {				sibling= StubUtility.findNextSibling(existingGetter);				existingGetter.delete(false, null);			}			else				sibling= getInsertPosition();							String formattedContent= StubUtility.codeFormat(buf.toString(), indent, lineDelim) + lineDelim;			fCreatedAccessors.add(parentType.createMethod(formattedContent, sibling, true, null));		}	}