Bug 69101 Quick Fix new class does not update imports [quick fix]
1. Ctrl-1 New Class to resolve non-existing type 2. Change package target for new class 3. New class created but need to add import manually because package doesn't match.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java
}
		AST ast= node.getAST();
		ASTNode parent= node.getParent();
		while (parent instanceof Type) {
			parent= parent.getParent();
		}
		switch (parent.getNodeType()) {
			case ASTNode.METHOD_DECLARATION:
				MethodDeclaration decl= (MethodDeclaration) parent;
				if (decl.thrownExceptions().contains(node)) {
					return ast.resolveWellKnownType("java.lang.Exception"); 
				}
				break;
			case ASTNode.INSTANCEOF_EXPRESSION:
				InstanceofExpression instanceofExpression= (InstanceofExpression) parent;
				return instanceofExpression.getLeftOperand().resolveTypeBinding();
			case ASTNode.ARRAY_CREATION:
				ArrayCreation creation= (ArrayCreation) parent;
				if (creation.getInitializer() != null) {
					return creation.getInitializer().resolveTypeBinding();
				}
				return ASTResolving.guessBindingForReference(parent);
			case ASTNode.THROW_STATEMENT :
				return ast.resolveWellKnownType("java.lang.Exception"); 
			case ASTNode.TYPE_LITERAL:
			case ASTNode.CLASS_INSTANCE_CREATION:
			case ASTNode.CAST_EXPRESSION:
				return ASTResolving.guessBindingForReference(parent);
			case ASTNode.SINGLE_VARIABLE_DECLARATION:
				ASTNode parentParent= parent.getParent();