URL (@NotNull String id) { final String serviceUrl = LibrariesDownloadConnectionService.getInstance().getServiceUrl(); if (StringUtil.isNotEmpty(serviceUrl)) { try { final String url = serviceUrl + "/" + id + "/"; IdeUiService.getInstance().prepareURL(url); return new URL(url); } catch (MalformedURLException e) { LOG.error(e); } catch (IOException e) { // no route to host, unknown host, etc. } } return null; }