Bug 54470 Eclipse should disallow usage of types defined in default package
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
}
				}
				content.append(constructTypeStub(imports, lineDelimiter));
				IJavaElement[] elems= enclosingType.getChildren();
				IJavaElement sibling= elems.length > 0 ? elems[0] : null;
				
				createdType= enclosingType.createType(content.toString(), sibling, false, new SubProgressMonitor(monitor, 1));
			
				indent= StubUtility.getIndentUsed(enclosingType) + 1;
			}
			
			
			ICompilationUnit cu= createdType.getCompilationUnit();	
			boolean needsSave= !cu.isWorkingCopy();
			imports.create(needsSave, new SubProgressMonitor(monitor, 1));
	
			JavaModelUtil.reconcile(cu);
		
			createTypeMembers(createdType, imports, new SubProgressMonitor(monitor, 1));
	
			
			imports.create(needsSave, new SubProgressMonitor(monitor, 1));
			
			if (removeUnused(cu, imports)) {
				imports.create(needsSave, null);
			}
			
			JavaModelUtil.reconcile(cu);
			
			ISourceRange range= createdType.getSourceRange();