public void save(@NotNull List<? extends GitRebaseEntry> entries) throws IOException {
    String encoding = GitConfigUtil.getLogEncoding(myProject, myRoot);
    try (PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream(myFile), encoding))) {
      boolean knowsDropAction = GitVersionSpecialty.KNOWS_REBASE_DROP_ACTION.existsIn(myProject);
      for (GitRebaseEntry e : entries) {
        if (e.getAction() != GitRebaseEntry.Action.DROP.INSTANCE || knowsDropAction) {
          out.println(e);
        }
      }
    }
  }
public void save(@NotNull List<? extends GitRebaseEntry> entries)