code: public boolean isPermissionDeclined(@NonNull String permissionsName) {
          return ActivityCompat.checkSelfPermission(context, permissionsName) != PackageManager.PERMISSION_GRANTED;
      }
docs: return true if permission is declined, false otherwise.