SearchScope correctScope(SearchScope base) {
    if (base instanceof GlobalSearchScope && myExtraFrames == 0 && myFileName != null) {
      return new DelegatingGlobalSearchScope((GlobalSearchScope)base) {
        @Override
        public boolean contains(@NotNull VirtualFile file) {
          return file.getName().equals(myFileName) && super.contains(file);
        }
      };
    }
    return base;
  }
SearchScope correctScope(SearchScope base)