private void checkForPredefinedNames() throws ConfigurationException {
    final Set<String> predefinedScopes = new HashSet<>();
    for (NamedScope scope : CustomScopesAggregator.getAllCustomScopes(myProject)) {
      predefinedScopes.add(scope.getScopeId());
    }
    for (int i = 0; i < myRoot.getChildCount(); i++) {
      final MyNode node = (MyNode)myRoot.getChildAt(i);
      final NamedConfigurable scopeConfigurable = node.getConfigurable();
      final String name = scopeConfigurable.getDisplayName();
      if (predefinedScopes.contains(name)) {
        selectNodeInTree(node);
        throw new ConfigurationException(LangBundle.message("dialog.message.scope.name.equals.to.predefined.one"), ProjectBundle.message("rename.scope.title"));
      }
    }
  }
private void checkForPredefinedNames()