MavenServerConnector (@NotNull Project project, @NotNull String workingDirectory) { var connector = doGetConnector(project, workingDirectory); if (!connector.ping()) { shutdownConnector(connector, true); connector = doGetConnector(project, workingDirectory); } return connector; }