private boolean getArrayInitializerToArrayCreation(IInvocationContext context, ASTNode node, Collection resultingCollections) throws CoreException {
private static boolean getArrayInitializerToArrayCreation(IInvocationContext context, ASTNode node, Collection resultingCollections) throws CoreException {
	private boolean getArrayInitializerToArrayCreation(IInvocationContext context, ASTNode node, Collection resultingCollections) throws CoreException {		if (!(node instanceof ArrayInitializer)) {			return false;		}		ArrayInitializer initializer= (ArrayInitializer) node;		ASTNode parent= initializer.getParent();		while (parent instanceof ArrayInitializer) {			initializer= (ArrayInitializer) parent;			parent= parent.getParent();		}		ITypeBinding typeBinding= initializer.resolveTypeBinding();		if (!(parent instanceof VariableDeclaration) || typeBinding == null || !typeBinding.isArray()) {			return false;		}		if (resultingCollections == null) {			return true;		}		AST ast= node.getAST();		ASTRewrite rewrite= ASTRewrite.create(ast);		ImportRewrite imports= new ImportRewrite(context.getCompilationUnit());		String typeName= imports.addImport(typeBinding);		ArrayCreation creation= ast.newArrayCreation();		creation.setInitializer((ArrayInitializer) rewrite.createMoveTarget(initializer));		creation.setType((ArrayType) ASTNodeFactory.newType(ast, typeName));		rewrite.replace(initializer, creation, null);		String label= CorrectionMessages.QuickAssistProcessor_typetoarrayInitializer_description;		Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);		LinkedCorrectionProposal proposal= new LinkedCorrectionProposal(label, context.getCompilationUnit(), rewrite, 1, image);		resultingCollections.add(proposal);		return true;	}