public boolean hasInterest() {
    return (!getAllKeyClients().isEmpty()) || (!getAllKeyClientsInv().isEmpty())
        || (!getKeysOfInterest().isEmpty()) || (!getPatternsOfInterest().isEmpty())
        || (!getFiltersOfInterest().isEmpty()) || (!getKeysOfInterestInv().isEmpty())
        || (!getPatternsOfInterestInv().isEmpty())
        || (!getFiltersOfInterestInv().isEmpty());
  }
determines whether there is any remaining interest for the given identifier
geode-core/src/main/java/org/apache/geode/internal/cache/FilterProfile.java