Bug 76363 NPE in AdvancedQuickAssistProcessor.getFullyCoveredNodes
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java
}
		
		AST ast= covering.getAST();
		ASTRewrite rewrite= ASTRewrite.create(ast);
		
		IfStatement ifStatement= ast.newIfStatement();
		ifStatement.setExpression((Expression) rewrite.createCopyTarget(conditional.getExpression()));
		
		Assignment thenAssignment= ast.newAssignment();
		thenAssignment.setLeftHandSide((Expression) rewrite.createCopyTarget(assignment.getLeftHandSide()));
		thenAssignment.setRightHandSide((Expression) rewrite.createCopyTarget(conditional.getThenExpression()));
		ExpressionStatement thenStatement = ast.newExpressionStatement(thenAssignment);
		ifStatement.setThenStatement(thenStatement);
		
		Assignment elseAssignment= ast.newAssignment();
		elseAssignment.setLeftHandSide((Expression) rewrite.createCopyTarget(assignment.getLeftHandSide()));
		elseAssignment.setRightHandSide((Expression) rewrite.createCopyTarget(conditional.getElseExpression()));
		ExpressionStatement elseStatement = ast.newExpressionStatement(elseAssignment);
		ifStatement.setElseStatement(elseStatement);
		
		rewrite.replace(statement, ifStatement, null);
		
		String label= CorrectionMessages.getString("AdvancedQuickAssistProcessor.replaceConditionalWithIfAssign"); 
		Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL);
		ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, context.getCompilationUnit(), rewrite, 1, image);
		resultingCollections.add(proposal);
		return true;
	}
}