public static int findAvailableSocketPort() {
    try {
      return NetUtils.findAvailableSocketPort();
    }
    catch (IOException e) {
      throw new RuntimeException(PyBundle.message("runcfg.error.message.failed.to.find.free.socket.port"), e);
    }
  }
public static int findAvailableSocketPort()