code: public SoyTofu compileToTofu(Map<String, Supplier<Object>> pluginInstances) {
      resetErrorReporter();
      ServerCompilationPrimitives primitives = compileForServerRendering();
      throwIfErrorsPresent();
      SoyTofu tofu = doCompileToTofu(primitives, pluginInstances);
  
      reportWarnings();
      return tofu;
    }
docs: Compiles this Soy file set into a Java object (type {@code SoyTofu}) capable of rendering the
  compiled templates.
  
  @return The resulting {@code SoyTofu} object.
  @throws SoyCompilationException If compilation fails.