private @NotNull ServerSocket createSocket() throws IOException {
    IOException exc = null;
    for (int i = 0; i < myPortChoiceAttempts; i++) {
      int port = myDefaultPort + i;
      try {
        return new ServerSocket(port, 0, myBindAddress);
      }
      catch (IOException e) {
        exc = e;
        LOG.info(e);
      }
    }
    throw exc;
  }
private @NotNull ServerSocket createSocket()