void (final @Nullable Runnable onComplete) { TaskRepository first = ContainerUtil.find(getAllRepositories(), repository -> repository.isConfigured()); if (first == null) { myIssueCache.clear(); if (onComplete != null) { onComplete.run(); } return; } myUpdating = true; if (ApplicationManager.getApplication().isUnitTestMode()) { doUpdate(onComplete); } else { ApplicationManager.getApplication().executeOnPooledThread(() -> doUpdate(onComplete)); } }