private void makeMenuBar() {
   if (isReadOnly) {
     menus = menuBuilder.addRestoreVersion(path).build();
   } else {
     menus =
         menuBuilder
             .addSave(
                 new Command() {
                   @Override
                   public void execute() {
                     onSave();
                   }
                 })
             .addCopy(path)
             .addRename(path)
             .addDelete(path)
             .addValidate(onValidate())
             .build();
   }
 }
 private void makeMenuBar() {
   menus = menuBuilder.addRestoreVersion(path).build();
 }