EventLogExternalSendSettings (@NotNull String recorderId, @NotNull String configUrl, @NotNull String appVersion) { try { return StatsHttpRequests.request(configUrl, myApplicationInfo.getConnectionSettings()).send(r -> { try { InputStream content = r.read(); if (content != null) { InputStreamReader reader = new InputStreamReader(content, StandardCharsets.UTF_8); return EventLogExternalSettings.parseSendSettings(reader, appVersion); } return null; } catch (EventLogConfigParserException e) { throw new StatsResponseException(e); } }).getResult(); } catch (StatsResponseException | IOException e) { logError(recorderId, e); } return null; }