Bug 26313 Assign to new local should not be available on assignmet statement
Build I2002113 Quick assist new local should not be available on statements like x= name when selecting name.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java
}
		Name name= ((SimpleType) type).getName();
		Name newName= (Name) ASTNode.copySubtree(ast, name);
		rewrite.markAsInserted(newName);
		methodDeclaration.thrownExceptions().add(newName);
	
		String label= CorrectionMessages.getString("QuickAssistProcessor.catchclausetothrows.description");
		Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_EXCEPTION);
		ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, context.getCompilationUnit(), rewrite, 1, image);
		proposal.ensureNoModifications();
		resultingCollections.add(proposal);
	}
	
	private void getRenameLocalProposals(ICorrectionContext context, List resultingCollections) throws CoreException {
		ASTNode node= context.getCoveringNode();
		if (!(node instanceof SimpleName)) {
			return;
		}
		SimpleName name= (SimpleName) node;
		IBinding binding= name.resolveBinding();
		if (binding == null || binding.getKind() == IBinding.PACKAGE) {
			return;
		}
		LinkedNamesAssistProposal proposal= new LinkedNamesAssistProposal(name);
		resultingCollections.add(proposal);
	}
	
	
}