Bug 40409 quick fix: nonsensical proposal [quick fix]
20030716 void f(){ int i= f(); } the proposal you get is: 'change variable type to void' which makes no sense
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java
}
		} else if (parentNodeType == ASTNode.VARIABLE_DECLARATION_FRAGMENT) {
			VariableDeclarationFragment frag= (VariableDeclarationFragment) selectedNode.getParent();
			if (selectedNode.equals(frag.getName())) {
				nodeToCast= frag.getInitializer();
			}
		}
		ASTRewriteCorrectionProposal castProposal= getCastProposal(context, castType, nodeToCast, 5);
		if (castProposal != null) {
			proposals.add(castProposal);
		}
		
		if ("void".equals(args[1])) { 
			return;
		}
		
		
		if (parentNodeType == ASTNode.RETURN_STATEMENT) {
			ITypeBinding binding= nodeToCast.resolveTypeBinding();
			
			
			BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(selectedNode);
			if (binding != null && decl instanceof MethodDeclaration) {
				MethodDeclaration methodDeclaration= (MethodDeclaration) decl;
	
				binding= Bindings.normalizeTypeBinding(binding);
				if (binding == null) {
					binding= astRoot.getAST().resolveWellKnownType("java.lang.Object"); 
				}