private static InputStream transform(File file,
                                       List<ResourceRootFilter> filters,
                                       Ref<File> outputFileRef,
                                       CompileContext context) throws FileNotFoundException {
    Reader reader = new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8);
    Reader transformer = new ChainingFilterTransformer(context, filters, outputFileRef).transform(reader);
    return new ReaderInputStream(transformer);
  }
private static InputStream transform(File file,
                                       List<ResourceRootFilter> filters,
                                       Ref<File> outputFileRef,
                                       CompileContext context)