if (type == ASTNode.METHOD_DECLARATION || type == ASTNode.INITIALIZER) {
if (type == ASTNode.INITIALIZER || (type == ASTNode.METHOD_DECLARATION && !ASTResolving.isInsideConstructorInvocation((MethodDeclaration) bodyDeclaration, node))) {
	private static void addNewVariableProposals(ICompilationUnit cu, Name node, SimpleName simpleName, Collection proposals) {		String name= simpleName.getIdentifier();		BodyDeclaration bodyDeclaration= ASTResolving.findParentBodyDeclaration(node);		int type= bodyDeclaration.getNodeType();		if (type == ASTNode.METHOD_DECLARATION) {			int relevance= StubUtility.hasParameterName(cu.getJavaProject(), name) ? 8 : 5;			String label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createparameter.description", simpleName.getIdentifier()); //$NON-NLS-1$			Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL);			proposals.add(new NewVariableCompletionProposal(label, cu, NewVariableCompletionProposal.PARAM, simpleName, null, relevance, image));		}		if (type == ASTNode.METHOD_DECLARATION || type == ASTNode.INITIALIZER) {			int relevance= StubUtility.hasLocalVariableName(cu.getJavaProject(), name) ? 10 : 7;			String label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createlocal.description", simpleName.getIdentifier()); //$NON-NLS-1$			Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL);			proposals.add(new NewVariableCompletionProposal(label, cu, NewVariableCompletionProposal.LOCAL, simpleName, null, relevance, image));		}				if (node.getParent().getNodeType() == ASTNode.ASSIGNMENT) {			Assignment assignment= (Assignment) node.getParent();			if (assignment.getLeftHandSide() == node && assignment.getParent().getNodeType() == ASTNode.EXPRESSION_STATEMENT) {				ASTNode statement= assignment.getParent();				ASTRewrite rewrite= ASTRewrite.create(statement.getAST());				if (ASTNodes.isControlStatementBody(assignment.getParent().getLocationInParent())) {					rewrite.replace(statement, rewrite.getAST().newBlock(), null);				} else {					rewrite.remove(statement, null);				}				String label= CorrectionMessages.getString("UnresolvedElementsSubProcessor.removestatement.description"); //$NON-NLS-1$				Image image= JavaPlugin.getDefault().getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_DELETE);				ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 4, image);				proposals.add(proposal);			}		}	}