void (@NotNull ServerConnection<?> connection) { RemoteServer<?> server = connection.getServer(); RemoteServersServiceViewContributor contributor = findContributor(server); if (contributor != null) { myProject.getMessageBus().syncPublisher(ServiceEventListener.TOPIC) .handle(ServiceEventListener.ServiceEvent.createResetEvent(contributor.getClass())); updateServerContent(myServerToContent.get(server), connection); if (connection.getStatus() == ConnectionStatus.CONNECTED) { // connectionStatusChanged is also called for errors, don't initiate polling once again, IDEA-259400 if (Strings.areSameInstance(connection.getStatusText(), connection.getStatus().getPresentableText())) { // effectively, checks for no error myConnectionsToExpand.add(connection); pollDeployments(connection); } } else { myConnectionsToExpand.remove(connection); } } }