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