}
@NotNull
@Override
public Collection<PsiElement> findClassesForTest(@NotNull PsiElement element) {
final HaxeClass haxeClass = findSourceElement(element);
if (haxeClass == null) {
return Collections.emptyList();
}
final Collection<PsiElement> result = new THashSet<PsiElement>();
final Pair<String, String> packageAndName = HaxeResolveUtil.splitQName(haxeClass.getQualifiedName());
final GlobalSearchScope searchScope = GlobalSearchScope.projectScope(element.getProject());
final String className = packageAndName.getSecond();
if (className.startsWith("Test")) {
final String name = className.substring("Test".length());
result.addAll(HaxeComponentIndex.getItemsByName(name, element.getProject(), searchScope));