private @Nullable NamedScopeFilter getContainingFilter(@Nullable VirtualFile file) {
    if (file == null) return null;
    ScopeViewPane pane = getScopeViewPane();
    if (pane == null) return null;
    for (NamedScopeFilter filter : pane.getFilters()) {
      if (filter.accept(file)) return filter;
    }
    return null;
  }
private @Nullable NamedScopeFilter getContainingFilter(@Nullable VirtualFile file)