EditScopesDialog (final Project project, @Nullable final String scopeToSelect, final boolean checkShared) { final ScopeChooserConfigurable configurable = new ScopeChooserConfigurable(project); final EditScopesDialog dialog = new EditScopesDialog(project, configurable, checkShared); if (scopeToSelect != null) { configurable.selectNodeInTree(scopeToSelect); } dialog.show(); return dialog; }