public static void setBindings(List<KeyBindingAction> list, String fileName) {
   try {
     File file = new File(fileName);
     Document doc = createDocument();
     setBindings(list, doc);
     saveDocument(doc, file);
   } catch (Throwable throwable) {
     throwable.printStackTrace();
   }
 }
 public void saveKeyBindings() {
   KeyBindingWriter.setBindings(getKeyBindingActions(), getUserFileName());
 }