class LocaleFileWriter {

    public void writeToFile(File file) throws IOException {
        // Find longest identifier length for spacing
        int length = LocaleSystem.getIdentifiers().keySet().stream()
                .min(new StringLengthComparator())
                .map(String::length).orElse(0) + 2;

        addMissingLang();

        List<String> lines = createLines(length);

        write(file, lines);
    }

    public  LocaleFileWriter(Locale locale);

}