diff --git a/platform/usageView/src/com/intellij/usages/UsageSearcher.java b/platform/usageView/src/com/intellij/usages/UsageSearcher.java index 16262ca523e9..923fc850f99c 100644 --- a/platform/usageView/src/com/intellij/usages/UsageSearcher.java +++ b/platform/usageView/src/com/intellij/usages/UsageSearcher.java @@ -16,9 +16,14 @@ package com.intellij.usages; import com.intellij.util.Generator; +import com.intellij.util.Processor; +import org.jetbrains.annotations.NotNull; /** * @author max */ -public interface UsageSearcher extends Generator{ +public interface UsageSearcher extends Generator { + // hands all found usages to the processor + // not guaranteed to be in read action, not guaranteed in the same thread + void generate(@NotNull Processor processor); }