int fieldRelevance= StubUtility.hasFieldName(targetCU.getJavaProject(), name) ? 9 : 6; proposals.add(new NewVariableCompletionProposal(label, targetCU, NewVariableCompletionProposal.FIELD, simpleName, senderDeclBinding, fieldRelevance, image));
	private static void addNewFieldForType(ICompilationUnit targetCU, ITypeBinding binding, ITypeBinding senderDeclBinding, SimpleName simpleName, boolean isWriteAccess, Collection proposals) {		String name= simpleName.getIdentifier();		String label;		Image image;		if (senderDeclBinding.isEnum() && !isWriteAccess) {			label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_createenum_description, new Object[] { name, ASTResolving.getTypeSignature(senderDeclBinding) });			image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC);			proposals.add(new NewVariableCompletionProposal(label, targetCU, NewVariableCompletionProposal.ENUM_CONST, simpleName, senderDeclBinding, 10, image));		} else {			if (binding == null) {				label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_createfield_description, name);				image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PRIVATE);			} else {				label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_createfield_other_description, new Object[] { name, ASTResolving.getTypeSignature(senderDeclBinding) } );				image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC);			}			int fieldRelevance= StubUtility.hasFieldName(targetCU.getJavaProject(), name) ? 9 : 6;			proposals.add(new NewVariableCompletionProposal(label, targetCU, NewVariableCompletionProposal.FIELD, simpleName, senderDeclBinding, fieldRelevance, image));			if (!isWriteAccess && !senderDeclBinding.isAnonymous()) {				if (binding == null) {					label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_createconst_description, name);					image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PRIVATE);				} else {					label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_createconst_other_description, new Object[] { name, ASTResolving.getTypeSignature(senderDeclBinding) } );					image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC);				}				int constRelevance= StubUtility.hasConstantName(name) ? 9 : 4;				proposals.add(new NewVariableCompletionProposal(label, targetCU, NewVariableCompletionProposal.CONST_FIELD, simpleName, senderDeclBinding, constRelevance, image));			}		}	}