catch (Exception e1) {
LOG.error(e1);
}
}
@NotNull
<BUG>private static AsyncResult<Url> chooseUrl(@NotNull Collection<Url> urls) {
</BUG>
if (urls.size() == 1) {
<BUG>return new AsyncResult.Done<Url>(ContainerUtil.getFirstItem(urls));
</BUG>
}

catch (Exception e1) {
LOG.error(e1);
}
}
@NotNull
private static Promise<Url> chooseUrl(@NotNull Collection<Url> urls) {
if (urls.size() == 1) {
return Promise.resolve(ContainerUtil.getFirstItem(urls));
}
