SearchEverywhereContributor<Object> (boolean everywhere) { DataContext dataContext = SimpleDataContext.getProjectContext(getProject()); AnActionEvent event = AnActionEvent.createFromDataContext(ActionPlaces.UNKNOWN, null, dataContext); ClassSearchEverywhereContributor contributor = new ClassSearchEverywhereContributor(event) {{ myScopeDescriptor = new ScopeDescriptor(FindSymbolParameters.searchScopeFor(myProject, everywhere)); }}; Disposer.register(getProjectDisposable(), contributor); return contributor; }