IBinding binding= ((SimpleName) assignedNode).resolveBinding();
IBinding binding= (assignedNode instanceof SimpleName) ? ((SimpleName) assignedNode).resolveBinding() : ((SimpleName) assignExpression).resolveBinding();
	public static void getAssignmentHasNoEffectProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) {		CompilationUnit root= context.getASTRoot();		ASTNode selectedNode= problem.getCoveringNode(root);		if (!(selectedNode instanceof Assignment)) {			return;		}		ASTNode assignedNode= ((Assignment) selectedNode).getLeftHandSide();		ASTNode assignExpression= ((Assignment) selectedNode).getRightHandSide();		if (!(assignedNode instanceof SimpleName) && !(assignExpression instanceof SimpleName)) {			return;		}				IBinding binding= ((SimpleName) assignedNode).resolveBinding();		if (!(binding instanceof IVariableBinding)) {			return;		}		ITypeBinding typeBinding= Bindings.getBindingOfParentType(selectedNode);		if (typeBinding == null)  {			return;		}		IVariableBinding fieldBinding= Bindings.findFieldInHierarchy(typeBinding, binding.getName());		if (fieldBinding == null || fieldBinding.getDeclaringClass() != typeBinding && Modifier.isPrivate(fieldBinding.getModifiers())) {			return;		}				if (assignedNode instanceof SimpleName) {			String label= CorrectionMessages.LocalCorrectionsSubProcessor_qualify_left_hand_side_description;			proposals.add(createNoSideEffectProposal(context, (SimpleName) assignedNode, fieldBinding, label, 6));		}		if (assignExpression instanceof SimpleName) {			String label= CorrectionMessages.LocalCorrectionsSubProcessor_LocalCorrectionsSubProcessor_qualify_right_hand_side_description;			proposals.add(createNoSideEffectProposal(context, (SimpleName) assignExpression, fieldBinding, label, 5));		}				if (binding == fieldBinding && ASTResolving.findParentBodyDeclaration(selectedNode) instanceof MethodDeclaration) {			SimpleName simpleName= (SimpleName) ((assignedNode instanceof SimpleName) ? assignedNode : assignExpression);			String label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_createparameter_description, simpleName.getIdentifier());			Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL);			proposals.add(new NewVariableCompletionProposal(label, context.getCompilationUnit(), NewVariableCompletionProposal.PARAM, simpleName, null, 5, image));		}				}