boolean (final AbstractTestProxy test) { Location location = test.getLocation(project, searchScope); return location instanceof MethodLocation || location instanceof PsiLocation && location.getPsiElement() instanceof PsiMethod; }