protected TestClassFilter getClassFilter(final JUnitConfiguration.Data data)
     throws CantRunException {
   Module module = myConfiguration.getConfigurationModule().getModule();
   if (myConfiguration.getPersistentData().getScope() == TestSearchScope.WHOLE_PROJECT) {
     module = null;
   }
   final TestClassFilter classFilter = TestClassFilter.create(getSourceScope(), module);
   return classFilter.intersectionWith(filterScope(data));
 }
 public MySearchForTestsTask(
     TestClassFilter classFilter,
     boolean[] junit4,
     THashSet<PsiClass> classes,
     FindCallback callback) {
   super(
       classFilter.getProject(), ExecutionBundle.message("seaching.test.progress.title"), true);
   myClassFilter = classFilter;
   myJunit4 = junit4;
   myClasses = classes;
   myCallback = callback;
 }