docs: private boolean isApplicable(RepositoryResource resource) {
          if (resource instanceof ApplicableToProduct) {
              if (((ApplicableToProduct) resource).getAppliesTo() == null) {
                  return true; // No appliesTo -> applicable
              }
          }
          return ((RepositoryResourceImpl) resource).doesResourceMatch(productDefinitions, null);
      }