Future<Collection<Usage>> (@NotNull PsiElement element, @NotNull RelativePoint popupPosition, @Nullable Editor editor, @Nullable SearchScope scope) { Project project = element.getProject(); FindUsagesManager findUsagesManager = ((FindManagerImpl)FindManager.getInstance(project)).getFindUsagesManager(); FindUsagesHandlerBase handler = findUsagesManager.getFindUsagesHandler(element, USAGES_WITH_DEFAULT_OPTIONS); if (handler == null) return null; //noinspection deprecation FindUsagesOptions options = handler.getFindUsagesOptions(DataManager.getInstance().getDataContext()); if (scope != null) options.searchScope = scope; return showElementUsagesWithResult(ShowUsagesParameters.initial(project, editor, popupPosition), createActionHandler(handler, options)); }