@Internal
  public static boolean isGroovy3orNewer() {
    //Having isGroovy3() with just "startsWith("3.") there could be (in the future) no tests executed at all for Groovy 4
    return !isGroovy2();
  }
Note: This method may throw checked exceptions although it doesn't say so.
spock-core/src/main/java/org/spockframework/runtime/GroovyRuntimeUtil.java