ICompilationUnit cu= type.getCompilationUnit(); if (cu != null && !cu.isConsistent()) { JavaModelUtil.reconcile(cu); }
	public static void evaluateProposals(IType type, String prefix, int offset, int length, int relevance, Set suggestedMethods, Collection result) throws CoreException {		if (prefix.length() == 0) {			relevance--;		}				// make sure we get all the fields		ICompilationUnit cu= type.getCompilationUnit();		if (cu != null && !cu.isConsistent()) {			JavaModelUtil.reconcile(cu);		}		IField[] fields= type.getFields();		IMethod[] methods= type.getMethods();		for (int i= 0; i < fields.length; i++) {			IField curr= fields[i];			String getterName= GetterSetterUtil.getGetterName(curr, null);			if (getterName.startsWith(prefix) && !hasMethod(methods, getterName) && suggestedMethods.add(getterName)) {				result.add(new GetterSetterCompletionProposal(curr, offset, length, true, relevance));			}							String setterName= GetterSetterUtil.getSetterName(curr, null);			if (setterName.startsWith(prefix) && !hasMethod(methods, setterName) && suggestedMethods.add(setterName)) {				result.add(new GetterSetterCompletionProposal(curr, offset, length, false, relevance));			}		}	}