private static Predicate<TestVersion> isCompatibleWithCurrentJava() {
    return geodeVersion
    // Every version of Geode is compatible with Java 11 and below
    -> JavaVersions.current().specificationVersion() <= 11
        // Geode 1.15 and above are compatible with every Java version through Java 17
        || geodeVersion.greaterThanOrEqualTo(TestVersion.valueOf("1.15.0"));
  }
Returns a predicate that applies {@code predicate} to a configuration's Java version.

@param predicate a Java version predicate
@return a predicate that applies {@code predicate} to a configuration's Java version
geode-junit/src/main/java/org/apache/geode/test/version/VmConfigurations.java