void () { if (!mySettings.isSelected() || mySettings.getUrl() == null) { return; } HostAndPort hostAndPort = getHostAndPort(mySettings.getUrl()); if (hostAndPort != null) { checkAndOpenPageLater(hostAndPort, 1, 300); } else { // we can't check page availability gracefully, so we just open it after some delay openPageLater(); } }