docs: private void validateInput(String resourceName, Collection<String> requiredRoles) {
          if (requiredRoles == null) {
              throw new NullPointerException("requiredRoles cannot be null.");
          } else if (resourceName == null) {
              throw new NullPointerException("resourceName cannot be null.");
          }
      }