code: public static ArrayList<String> getFilteredLinesFromFile(final String fileName, final String filter)
        throws IOException {
      return getFilteredLinesFromFile(fileName, filter, null, null);
    }
docs: get lines from given file with specified filter.
  @param fileName
  @param filter
  @return
  @throws IOException