Program: 111773
Project: 111773
Buggy source:
/** 
 * Get the settings state as a DOM element.
 * @return an ready to serialize DOM {@link Element}.
 * @see {@link #loadState(Element)}
 */
@Nullable @Override public Element getState(){
  final Element element=new Element(KEY.ROOT.toString());
  element.setAttribute(KEY.MISSING_GITIGNORE.toString(),Boolean.toString(missingGitignore));
  element.setAttribute(KEY.IGNORED_FILE_STATUS.toString(),Boolean.toString(ignoredFileStatus));
  element.setAttribute(KEY.OUTER_IGNORE_RULES.toString(),Boolean.toString(outerIgnoreRules));
  element.setAttribute(KEY.OUTER_IGNORE_WRAPPER_HEIGHT.toString(),Integer.toString(outerIgnoreWrapperHeight));
  element.setAttribute(KEY.VERSION.toString(),version);
  element.setAttribute(KEY.STARRED_TEMPLATES.toString(),StringUtil.join(starredTemplates,Constants.DOLLAR));
  element.setAttribute(KEY.UNIGNORE_ACTIONS.toString(),Boolean.toString(unignoreActions));
  element.setAttribute(KEY.HIDE_IGNORED_FILES_ON_PROJECT_VIEW.toString(),Boolean.toString(unignoreActions));
  Element languagesElement=new Element(KEY.LANGUAGES.toString());
  for (  Map.Entry<IgnoreLanguage,TreeMap<IgnoreLanguagesSettings.KEY,Object>> entry : languagesSettings.entrySet()) {
    Element languageElement=new Element(KEY.LANGUAGES_LANGUAGE.toString());
    languageElement.setAttribute(KEY.LANGUAGES_ID.toString(),entry.getKey().getID());
    for (    Map.Entry<IgnoreLanguagesSettings.KEY,Object> data : entry.getValue().entrySet()) {
      languageElement.setAttribute(data.getKey().name(),data.getValue().toString());
    }
    languagesElement.addContent(languageElement);
  }
  element.addContent(languagesElement);
  element.addContent(createTemplatesElement(userTemplates));
  element.setAttribute("String_Node_Str","String_Node_Str");
  return element;
}

Fixed version (ground truth):
/** 
 * Get the settings state as a DOM element.
 * @return an ready to serialize DOM {@link Element}.
 * @see {@link #loadState(Element)}
 */
@Nullable @Override public Element getState(){
  final Element element=new Element(KEY.ROOT.toString());
  element.setAttribute(KEY.MISSING_GITIGNORE.toString(),Boolean.toString(missingGitignore));
  element.setAttribute(KEY.IGNORED_FILE_STATUS.toString(),Boolean.toString(ignoredFileStatus));
  element.setAttribute(KEY.OUTER_IGNORE_RULES.toString(),Boolean.toString(outerIgnoreRules));
  element.setAttribute(KEY.OUTER_IGNORE_WRAPPER_HEIGHT.toString(),Integer.toString(outerIgnoreWrapperHeight));
  element.setAttribute(KEY.VERSION.toString(),version);
  element.setAttribute(KEY.STARRED_TEMPLATES.toString(),StringUtil.join(starredTemplates,Constants.DOLLAR));
  element.setAttribute(KEY.UNIGNORE_ACTIONS.toString(),Boolean.toString(unignoreActions));
  element.setAttribute(KEY.HIDE_IGNORED_FILES_ON_PROJECT_VIEW.toString(),Boolean.toString(hideIgnoredFiles));
  Element languagesElement=new Element(KEY.LANGUAGES.toString());
  for (  Map.Entry<IgnoreLanguage,TreeMap<IgnoreLanguagesSettings.KEY,Object>> entry : languagesSettings.entrySet()) {
    Element languageElement=new Element(KEY.LANGUAGES_LANGUAGE.toString());
    languageElement.setAttribute(KEY.LANGUAGES_ID.toString(),entry.getKey().getID());
    for (    Map.Entry<IgnoreLanguagesSettings.KEY,Object> data : entry.getValue().entrySet()) {
      languageElement.setAttribute(data.getKey().name(),data.getValue().toString());
    }
    languagesElement.addContent(languageElement);
  }
  element.addContent(languagesElement);
  element.addContent(createTemplatesElement(userTemplates));
  element.setAttribute("String_Node_Str","String_Node_Str");
  return element;
}