GlobalSearchScope (@NotNull Module module, boolean includeTests) { GlobalSearchScope moduleScope = moduleWithDependenciesScope(module); if (!includeTests) { moduleScope = moduleScope.intersectWith(projectProductionScope(module.getProject())); } return getProjectAnnotationFilesScope(module).intersectWith(moduleScope); }