void (@NotNull Set<? super String> scopes) { for (int i = 0; i < myRoot.getChildCount(); i++) { final MyNode node = (MyNode)myRoot.getChildAt(i); final NamedScope scope = (NamedScope)node.getConfigurable().getEditableObject(); scopes.add(scope.getScopeId()); } }