private void doChooseSdk() {
    try {
      SwingUtilities.invokeAndWait(() -> {
        if (chooseSdk()) {
          giveConsent();
        }
      });
    }
    catch (InterruptedException | InvocationTargetException e) {
      LOG.warn("Failed to get SDK download consent", e);
    }
  }
private void doChooseSdk()