docs: public static IClasspathEntry newLibraryEntry(Bundle bundle, IPath precomputedBundlePath, BundleURLMappings javadocURLs) {
  		assert bundle != null;
  		final IPath bundlePath;
  		if (precomputedBundlePath == null) {
  			bundlePath = BundleUtil.getBundlePath(bundle);
  		} else {
  			bundlePath = precomputedBundlePath;
  		}
  		final IPath sourceBundlePath = BundleUtil.getSourceBundlePath(bundle, bundlePath);
  		final IPath javadocPath = BundleUtil.getJavadocBundlePath(bundle, bundlePath);
  
  		final IClasspathAttribute[] extraAttributes;
  		if (javadocPath == null) {
  			if (javadocURLs != null) {
  				final String url = javadocURLs.getURLForBundle(bundle);
  				if (!Strings.isNullOrEmpty(url)) {
  					final IClasspathAttribute attr = JavaCore.newClasspathAttribute(
  							IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME,
  							url);
  					extraAttributes = new IClasspathAttribute[] {attr};
  				} else {
  					extraAttributes = ClasspathEntry.NO_EXTRA_ATTRIBUTES;
  				}
  			} else {
  				extraAttributes = ClasspathEntry.NO_EXTRA_ATTRIBUTES;
  			}
  		} else {
  			final IClasspathAttribute attr = JavaCore.newClasspathAttribute(
  					IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME,
  					javadocPath.makeAbsolute().toOSString());
  			extraAttributes = new IClasspathAttribute[] {attr};
  		}
  
  		return JavaCore.newLibraryEntry(
  				bundlePath,
  				sourceBundlePath,
  				null,
  				null,
  				extraAttributes,
  				false);
  	}