private OutputStream openFile() throws IOException {
    try {
      return Files.newOutputStream(myTarget, MAIN_WRITE);
    }
    catch (IOException e) {
      throw new IOException(UtilBundle.message("safe.write.open", myTarget), e);
    }
  }
private OutputStream openFile()