StatsProxyInfo (@NotNull String url) { Application app = ApplicationManager.getApplication(); if (app != null && !app.isDisposed()) { Proxy proxy = findProxy(url); if (proxy != Proxy.NO_PROXY) { return new StatsProxyInfo(proxy, getAuthProvider()); } } return NO_PROXY; }