use of com.intellij.ide.util.gotoByName.ChooseByNameBase in project intellij-community by JetBrains.
the class CodeInsightTestFixtureImpl method getGotoClassResults.
@NotNull
@Override
public List<Object> getGotoClassResults(@NotNull String pattern, boolean searchEverywhere, @Nullable PsiElement contextForSorting) {
final ChooseByNameBase chooseByNamePopup = getMockChooseByNamePopup(contextForSorting);
final ArrayList<Object> results = new ArrayList<>();
chooseByNamePopup.getProvider().filterElements(chooseByNamePopup, chooseByNamePopup.transformPattern(pattern), searchEverywhere, new MockProgressIndicator(), new CommonProcessors.CollectProcessor<>(results));
return results;
}
Aggregations