code: public static Path appendLinesAndClose(String filePath, Charset charset,
              String... lines) {
          return appendLineStreamAndClose(filePath, charset,
                  Arrays.stream(lines));
      }
docs: Append lines and close path.
  
  @param filePath the file path
  @param charset  the charset
  @param lines    the lines
  @return the path