void (@NotNull AnActionEvent e) { String name = UniqueNameGenerator.generateUniqueName(myServerType.getPresentableName(), s -> { for (NamedConfigurable<RemoteServer<?>> configurable : getConfiguredServers()) { if (configurable.getDisplayName().equals(s)) { return false; } } return true; }); MyNode node = addServerNode(myServersManager.createServer(myServerType, name), true); selectNodeInTree(node); }