Filter (@NotNull final Project project, @NotNull final GlobalSearchScope searchScope) { return new Filter() { @Override public boolean shouldAccept(final AbstractTestProxy test) { Location location = test.getLocation(project, searchScope); return location instanceof MethodLocation || location instanceof PsiLocation && location.getPsiElement() instanceof PsiMethod; } }; }