public boolean hasInterestsWithResultPolicy(final @NotNull String regionName, boolean isDurable,
      final @NotNull InterestResultPolicy interestResultPolicy) {
    return Stream.of(InterestType.values())
        .anyMatch(interestType -> hasInterestsWithResultPolicy(regionName, isDurable,
            interestResultPolicy, interestType));
  }
Iterate InterestTypes searching for any with the input interestResultPolicy

@return boolean based on the presence of the selected InterestResultPolicy
geode-core/src/main/java/org/apache/geode/cache/client/internal/RegisterInterestTracker.java