public <U extends ScriptContext> ScriptEnvironment<U> forInput(Class<U> newClazz) {
    return new ScriptEnvironment<>(declarations, newClazz, root);
  }
Returns a copy of this environment with a new input type {@code U}.
planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/expression/ScriptEnvironment.java