final File tokensFile = getTokensFile();
tokensFile.getParentFile().mkdirs();
try {
FileWriter fileWriter = new FileWriter(tokensFile);
YamlConfig config = new YamlConfig();
config.writeConfig.setAlwaysWriteClassname(false);
config.writeConfig.setWriteRootElementTags(false);
config.writeConfig.setWriteRootTags(false);
config.writeConfig.setExplicitFirstDocument(true);
YamlWriter yamlWriter = new YamlWriter(fileWriter, config);