void (@NotNull AnActionEvent event) { Project project = event.getData(CommonDataKeys.PROJECT); ProjectView view = project == null ? null : ProjectView.getInstance(project); if (view != null) { ShowSettingsUtil.getInstance().showSettingsDialog(project, c -> ConfigurableWrapper.cast(ScopeChooserConfigurable.class, c) != null, c -> { AbstractProjectViewPane pane = view.getCurrentProjectViewPane(); if (pane instanceof ScopeViewPane) { NamedScopeFilter filter = ((ScopeViewPane)pane).getFilter(pane.getSubId()); ScopeChooserConfigurable configurable = ConfigurableWrapper.cast(ScopeChooserConfigurable.class, c); if (configurable != null && filter != null) configurable.selectNodeInTree(filter.getScope().getScopeId()); } }); } }