}
Iterator importedClasses = loader.getImportedClasses().iterator();
while (importedClasses.hasNext()) {
ClassImport importedClass = (ClassImport) importedClasses.next();
if (importedClass.getPackageName().equals(packageName)
&& importedClass.getClassName().equals(className)) {
// Already imported.
return simpleName;
} else {
String importedName = importedClass.getClassName();
int lastDollar = importedName.lastIndexOf('$');
if ((lastDollar == -1) && importedName.equals(simpleName)) {
return name;
} else if ((lastDollar >= 0)