code: public static FortumoStore initFortumoStore(@NotNull Context context, final boolean checkInventory) {
          final FortumoStore[] storeToReturn = {null};
          final FortumoStore fortumoStore = new FortumoStore(context);
          if (fortumoStore.isBillingAvailable(context.getPackageName())) {
              final CountDownLatch latch = new CountDownLatch(1);
              fortumoStore.getInAppBillingService().startSetup(new IabHelper.OnIabSetupFinishedListener() {
                  @Override
                  public void onIabSetupFinished(@NotNull IabResult setupResult) {
                      if (setupResult.isSuccess()) {
                          if (checkInventory) {
                              try {
                                  final Inventory inventory = fortumoStore.getInAppBillingService().queryInventory(false, null, null);
                                  if (!inventory.getAllPurchases().isEmpty()) {
                                      storeToReturn[0] = fortumoStore;
                                  } else {
                                      Logger.d("Purchases not found");
                                  }
                              } catch (IabException e) {
                                  Logger.e("Error while requesting purchases", e);
                              }
                          } else {
                              storeToReturn[0] = fortumoStore;
                          }
                      }
                      latch.countDown();
                  }
              });
              try {
                  latch.await();
              } catch (InterruptedException e) {
                  Logger.e("Setup was interrupted", e);
              }
          }
          return storeToReturn[0];
      }
docs: todo rename the method