code: public static boolean areAllPermissionsGranted(@NonNull final Context context,
                                                     @NonNull final String... permissions) {
          Condition.INSTANCE.ensureNotNull(context, "The context may not be null");
          Condition.INSTANCE.ensureNotNull(permissions, "The array may not be null");
  
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
              for (String permission : permissions) {
                  if (!isPermissionGranted(context, permission)) {
                      return false;
                  }
              }
          }
  
          return true;
      }
docs: Returns, whether all permissions, which are contained by a specific array, are granted, or
  not.
  
  @param context
  The context, which should be used, as an instance of the class {@link Context}. The
  context may not be null
  @param permissions
  An array, which contains the permissions, e.g. <code>android.Manifest.permission.CALL_PHONE</code>,
  which should be checked, as a {@link String} array. The array may not be null
  @return True, if all given permissions are granted, false otherwise