GlobalSearchScope () { final JUnitConfiguration.Data persistentData = getConfiguration().getPersistentData(); final String testObject = persistentData.TEST_OBJECT; //ignore invisible setting if (JUnitConfiguration.TEST_CATEGORY.equals(testObject) || JUnitConfiguration.TEST_PATTERN.equals(testObject) || JUnitConfiguration.TEST_PACKAGE.equals(testObject)) { final SourceScope sourceScope = persistentData.getScope().getSourceScope(getConfiguration()); return sourceScope != null ? sourceScope.getGlobalSearchScope() : GlobalSearchScope.allScope(getProject()); } else { return super.initScope(); } }