code: public static List<String> readLines(Readable r) throws IOException {
      List<String> result = new ArrayList<String>();
      LineReader lineReader = new LineReader(r);
      String line;
      while ((line = lineReader.readLine()) != null) {
        result.add(line);
      }
      return result;
    }
docs: Reads all of the lines from a {@link Readable} object. The lines do not include
  line-termination characters, but do include other leading and trailing whitespace.
  
  <p>Does not close the {@code Readable}. If reading files or resources you should use the
  {@link Files#readLines} and {@link Resources#readLines} methods.
  
  @param r the object to read from
  @return a mutable {@link List} containing all the lines
  @throws IOException if an I/O error occurs