// For each type that is at the top level that is NOT a module
// or IncludeEntry, add it to the imports list. If there are
// types within modules which refer to these, their types must
// be explicitly stated in an import statement.
if (element.module ().equals ("") && !(element instanceof ModuleEntry || element instanceof IncludeEntry || element instanceof PrimitiveEntry))
importTypes.addElement (element);
}
while (emitList.hasMoreElements ())
{