@Override
  public @NotNull GlobalSearchScope intersectWith(@NotNull GlobalSearchScope scope) {
    if (scope instanceof FileLanguageGlobalScope) {
      FileLanguageGlobalScope other = (FileLanguageGlobalScope)scope;
      if (myBaseScope == other.myBaseScope) {
        Collection<LanguageMatcher> intersection = ContainerUtil.intersection(myLanguageMatchers, other.myLanguageMatchers);
        if (intersection.isEmpty()) {
          return GlobalSearchScope.EMPTY_SCOPE;
        }
        else {
          return new FileLanguageGlobalScope(myProject, myBaseScope, intersection);
        }
      }
    }
    return super.intersectWith(scope);
  }
@Override
  public @NotNull GlobalSearchScope intersectWith(@NotNull GlobalSearchScope scope)