Collection<PsiElement> (@NotNull PsiElement element) { PsiClass klass = findSourceElement(element); if (klass == null) return Collections.emptySet(); List<Pair<? extends PsiNamedElement, Integer>> classesWithProximities = new ArrayList<>(); Processor<Pair<? extends PsiNamedElement, Integer>> processor = Processors.cancelableCollectProcessor(classesWithProximities); collectTests(klass, processor); return TestFinderHelper.getSortedElements(classesWithProximities, true); }