public void save(T data) {
        this.dataFolder.mkdirs();
        File file = new File(this.dataFolder, this.fileName + this.fileExtension);
        if (file.exists()) {
            file.delete();
        }

        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }

        saveToFile(file.toPath(), data);
    }
Utility class for handling storage file i/o.
Saves backups of the data files on each save.

@param <T> the type being stored
helper/src/main/java/me/lucko/helper/serialize/FileStorageHandler.java