private SearchData createSearchData( @NotNull List<? extends PsiElement> psiElements, final FindUsagesOptions findUsagesOptions) { SearchData data = new SearchData(); data.myElements = new SmartPsiElementPointer[psiElements.size()]; int idx = 0; for (PsiElement psiElement : psiElements) { data.myElements[idx++] = SmartPointerManager.getInstance(myProject).createSmartPsiElementPointer(psiElement); } data.myOptions = findUsagesOptions; return data; }
public void clearFindingNextUsageInFile() { myLastSearchInFileData.myOptions = null; myLastSearchInFileData.myElements = null; }