docs: private boolean containsIncompatibleResourceType() {
      if (queryByResourceType && queryByPermission) {
        Resource[] resources = resourcesIntersection.toArray(new Resource[resourcesIntersection.size()]);
        return !ResourceTypeUtil.resourceIsContainedInArray(resourceType, resources);
      }
      return false;
    }