int (@NotNull Url url) { String protocol = url.getProtocol(); if (HTTP.equals(protocol) || HTTPS.equals(protocol)) { String host = url.getHost(); String timeout = getPropertyIdea(host, myServersFile.getValue(), ServersFileKeys.TIMEOUT); if (timeout != null) { try { return Integer.parseInt(timeout) * 1000; } catch (NumberFormatException nfe) { // use default } } return DEFAULT_READ_TIMEOUT; } if (SVN_SSH.equals(protocol)) { return (int)SvnConfiguration.getInstance(myProject).getSshReadTimeout(); } return 0; }