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