code: public final void setIntent(@NonNull final Activity activity, @NonNull final Intent intent) {
          Condition.INSTANCE.ensureNotNull(activity, "The activity may not be null");
          Condition.INSTANCE.ensureNotNull(intent, "The intent may not be null");
          removeAllItems();
          PackageManager packageManager = activity.getPackageManager();
          List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0);
  
          for (int i = 0; i < resolveInfos.size(); i++) {
              ResolveInfo resolveInfo = resolveInfos.get(i);
              addItem(i, resolveInfo.loadLabel(packageManager), resolveInfo.loadIcon(packageManager));
          }
  
          setOnItemClickListener(
                  createIntentClickListener(activity, (Intent) intent.clone(), resolveInfos));
      }
docs: Adds the apps, which are able to handle a specific intent, as items to the bottom sheet. This
  causes all previously added items to be removed. When an item is clicked, the corresponding
  app is started.
  
  @param activity
  The activity, the bottom sheet belongs to, as an instance of the class {@link
  Activity}. The activity may not be null
  @param intent
  The intent as an instance of the class {@link Intent}. The intent may not be null