void (@NotNull AnActionEvent e) { NamedScope scope = (NamedScope)getSelectedObject(); if (scope != null) { final ScopeConfigurable configurable = (ScopeConfigurable)((MyNode)myTree.getSelectionPath().getLastPathComponent()).getConfigurable(); NamedScopesHolder holder = configurable.getHolder(); PackageSet set = scope.getValue(); addNewScope(holder.createScope(createUniqueName(), set == null ? null : set.createCopy()), holder == myLocalScopesManager); } }