boolean (@NotNull Sdk sdk, @NotNull Disposable lifetime, @NotNull ProgressIndicator indicator, @NotNull Consumer<? super Boolean> onDownloadCompleteCallback) { ThreadingAssertions.assertEventDispatchThread(); PendingDownload pd = findTask(sdk); if (pd == null) return false; pd.registerListener(lifetime, indicator, onDownloadCompleteCallback); return true; }