Use File.toURI().toURL() instead of the deprecated File.toURL()
Use org.eclipse.jdt.core.IPackageFragmentRoot instead of org.eclipse.jdt.internal.core.PackageFragmentRoot as return value
Add //$NON-NLS-1$ tags