private Result compile() { List<String> processedArgs = buildArguments(overrideClasspath, extraArgs); if (checkWellFormed) { checkWellFormed(sources, processedArgs); } createAndInstallTempFolderForOutput(fileManager); return compiler .getTask( new PrintWriter( new BufferedWriter(new OutputStreamWriter(outputStream, UTF_8)), /*autoFlush=*/ true), fileManager, diagnosticHelper.collector, /* options= */ ImmutableList.copyOf(processedArgs), /* classes= */ ImmutableList.of(), sources) .call() ? Result.OK : Result.ERROR; }