docs: private void checkPermissions(String... permissions) {
          if (sAppPermissions == null) sAppPermissions = getManifestPermissions(mSource.getContext());
  
          if (permissions.length == 0) {
              throw new IllegalArgumentException("Please enter at least one permission.");
          }
  
          for (String p : permissions) {
              if (!sAppPermissions.contains(p)) {
                  if (!(Permission.ADD_VOICEMAIL.equals(p) &&
                      sAppPermissions.contains(Permission.ADD_VOICEMAIL_MANIFEST))) {
                      throw new IllegalStateException(
                          String.format("The permission %1$s is not registered in manifest.xml", p));
                  }
              }
          }
      }