docs: public static <T> void loadCollection(File file, Class<T> itemClass, Collection<T> collection) throws NoSuchMethodException, InstantiationException, IllegalAccessException,
        InvocationTargetException, IOException {
      Constructor<T> itemConstructor = itemClass.getConstructor(String.class);
      BufferedReader in = new BufferedReader(new FileReader(file));
      String line = in.readLine();
      while (line != null && line.length() > 0) {
        T t = itemConstructor.newInstance(line);
        collection.add(t);
        line = in.readLine();
      }
      in.close();
    }