@Internal
  public static boolean isGroovy3orOlder() {
    return isGroovy2() || GroovySystem.getVersion().startsWith("3.");
  }
Note: This method may throw checked exceptions although it doesn't say so.
spock-core/src/main/java/org/spockframework/runtime/GroovyRuntimeUtil.java