class SentenceChecker {
  
  private static final int BATCH_SIZE = 1000;

  private void run(Language language, File file) throws IOException {<FILL_FUNCTION_BODY>}

  public static void main(String[] args) throws IOException {
    if (args.length != 2) {
      System.err.println("Usage: " + SentenceChecker.class.getSimpleName() + " <langCode> <sentenceFile>");
      System.exit(1);
    }
    SentenceChecker checker = new SentenceChecker();
    checker.run(Languages.getLanguageForShortCode(args[0]), new File(args[1]));
  }
}

    JLanguageTool lt = new JLanguageTool(language);
    try (Scanner scanner = new Scanner(file)) {
      int count = 0;
      long startTime = System.currentTimeMillis();
      while (scanner.hasNextLine()) {
        String line = scanner.nextLine();
        lt.check(line);
        if (++count % BATCH_SIZE == 0) {
          long time = System.currentTimeMillis() - startTime;
          System.out.println(count + ". " + time + "ms per " + BATCH_SIZE + " sentences");
          startTime = System.currentTimeMillis();
        }
      }
    }
  
<no_super_class>