<BUG>progress = new HttpDownloadHelper.VerboseProgress(SysOut.getOut());</BUG><CONTEXT>boolean downloaded = false;HttpDownloadHelper.DownloadProgress progress;if (outputMode == OutputMode.SILENT) {progress = new HttpDownloadHelper.NullProgress();} else {<extra_id_0>}if (!Files.isWritable(environment.pluginsFile())) {throw new IOException("plugin directory " + environment.pluginsFile() + " is read only");</CONTEXT>
progress = new HttpDownloadHelper.VerboseProgress(terminal.writer());