public static LibraryInfo createJarDownloadInfo(final boolean useBrainsUrl, final String jarName, final String version,
final String... requiredClasses) {
final String v = version == null || version.length() == 0 ? "" : "/" + version + "/";
if (useBrainsUrl)
return new LibraryInfo(jarName, DOWNLOADING_URL + v + jarName, DOWNLOAD_JETBRAINS_COM, null,
requiredClasses);
else
return new LibraryInfo(jarName, MAVEN_DOWNLOADING_URL + v
+ jarName.substring(0, jarName.lastIndexOf('.')) + "-" + version + ".jar", DOWNLOAD_MAVEN_ORG, null,
requiredClasses);
}