public interface ScopeOptimizer
PsiSearchHelper.getUseScope(PsiElement)
,
PsiSearchHelperImpl.USE_SCOPE_OPTIMIZER_EP_NAME
to perform optimization of PsiElement's use scope.
SearchRequestCollector.searchWord(String, SearchScope, short, boolean, PsiElement)
,
SearchRequestCollector.CODE_USAGE_SCOPE_OPTIMIZER_EP_NAME
to exclude a scope without references in code from a usages search when the search with UsageSearchContext.IN_CODE
or UsageSearchContext.ANY
context was requested.
Modifier and Type | Method and Description |
---|---|
static SearchScope |
calculateOverallRestrictedUseScope(ScopeOptimizer [] optimizers,
PsiElement element) |
default SearchScope |
getRestrictedUseScope(PsiElement element) |
default GlobalSearchScope |
getScopeToExclude(PsiElement element)
Deprecated.
use
getRestrictedUseScope(PsiElement) instead. |
@Deprecated default GlobalSearchScope getScopeToExclude(PsiElement element)
getRestrictedUseScope(PsiElement)
instead.default SearchScope getRestrictedUseScope(PsiElement element)
static SearchScope calculateOverallRestrictedUseScope(ScopeOptimizer [] optimizers, PsiElement element)