return createPackage(packageFile.getPath());
}
private PackageElement createPackage(String packagePath) {
if (packagePath.isEmpty()) {
return new PackageElement("<unnamed>");
}
return new PackageElement(packagePath.replace(File.separatorChar, '.'));
}