class TemplateUtils {

  private TemplateUtils() {}

  private static Collection<String> templateLocations = new ArrayList<>();

  public static void setTemplateLocations(String... locations) {
    templateLocations = Arrays.asList(locations);
  }

  public static PebbleEngine getNewEngine() {<FILL_FUNCTION_BODY>}
}

    PebbleEngine engine;
    try {
      Loader<?> loader = new ClasspathLoader();
      if (templateLocations != null && !templateLocations.isEmpty()) {
        List<Loader<?>> loaders = new ArrayList<>();
        for (String templateLocation : templateLocations) {
          FileLoader fileLoader = new FileLoader();
          fileLoader.setPrefix(templateLocation);
          loaders.add(fileLoader);
        }
        // add this one last, so it is shadowed
        loaders.add(loader);
        loader = new DelegatingLoader(loaders);
      }
      engine = new PebbleEngine.Builder().loader(loader).strictVariables(false).build();
    } catch (PebbleException e) {
      throw new IllegalStateException(e);
    }
    return engine;
  
<no_super_class>