Bug 76363 NPE in AdvancedQuickAssistProcessor.getFullyCoveredNodes
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java
}
		
		if (resultingCollections == null) {
			return true;
		}
		
		AST ast= node.getAST();
		ASTRewrite rewrite= ASTRewrite.create(ast);
		
		ConditionalExpression conditionalExpression = ast.newConditionalExpression();
		Expression conditionCopy= (Expression) rewrite.createCopyTarget(ifStatement.getExpression());
		conditionalExpression.setExpression(conditionCopy);
		Expression thenCopy= (Expression) rewrite.createCopyTarget(thenReturn.getExpression());
		conditionalExpression.setThenExpression(thenCopy);
		Expression elseCopy= (Expression) rewrite.createCopyTarget(elseReturn.getExpression());
		conditionalExpression.setElseExpression(elseCopy);
		
		ReturnStatement returnStatement = ast.newReturnStatement();
		returnStatement.setExpression(conditionalExpression);
		rewrite.replace(ifStatement, returnStatement, null);
		
		String label= CorrectionMessages.getString("AdvancedQuickAssistProcessor.replaceIfWithConditionalReturn"); 
		Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL);
		ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, context.getCompilationUnit(), rewrite, 1, image);
		resultingCollections.add(proposal);
		return true;
	}
	private static boolean getReplaceIfElseAssignWithReturnConditionalProposals(IInvocationContext context,
			ASTNode node, Collection resultingCollections) {
		Statement statement= ASTResolving.findParentStatement(node);