public void saveToFile(PersistedSubject subject) throws IOException {
        Path subjectFile = resolveFile(subject.getParentCollection().getIdentifier(), subject.getIdentifier().getName());
        saveToFile(SubjectDataContainer.copyOf(subject.getSubjectData()), subjectFile);
    }
Saves a subject

@param subject the subject to save
@throws IOException if the write fails
sponge/src/main/java/me/lucko/luckperms/sponge/service/model/persisted/SubjectStorage.java