while (n != null) {
if (n instanceof CompilationUnit) {
CompilationUnit cu = (CompilationUnit) n;
PackageDeclaration pkg = cu.astPackageDeclaration();
if (pkg != null) il.stars.add(pkg.getPackageName());
for (ImportDeclaration imp : cu.astImportDeclarations()) {
if (imp.astStaticImport()) continue;
if (imp.astStarImport()) {
String i = imp.asFullyQualifiedName();
i = i.substring(0, i.length() - 2);
il.stars.add(i);