diff --git a/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java b/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java index a20d42d38bf8..a7818a9994cc 100644 --- a/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java +++ b/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java @@ -73,7 +73,7 @@ public class TooManyUsagesStatus { //assert ApplicationManager.getApplication().isDispatchThread() || !ApplicationManager.getApplication().isReadAccessAllowed(); long start = System.currentTimeMillis(); try { - while (System.currentTimeMillis() < start + 1000) { + while (System.currentTimeMillis() < start + 2000) { if (waitWhileUserClick.await(10, TimeUnit.MILLISECONDS)) break; if (myIndicator.isCanceled()) break; } diff --git a/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java b/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java index 57c0476d49be..5fb1e51df688 100644 --- a/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java +++ b/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java @@ -866,7 +866,7 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra Processor processor = usage -> { if (searchHasBeenCancelled()) return false; - TooManyUsagesStatus.getFrom(indicator).pauseProcessingIfTooManyUsages(); + tooManyUsagesStatus.pauseProcessingIfTooManyUsages(); boolean incrementCounter = !com.intellij.usages.UsageViewManager.isSelfUsage(usage, myTargets);