docs: protected Form createForm(RepositoryFile file, String branchName, String commitMessage) {
  
          Form form = new Form();
          if (isApiVersion(ApiVersion.V3)) {
              addFormParam(form, "file_path", file.getFilePath(), true);
              addFormParam(form, "branch_name", branchName, true);
          } else {
              addFormParam(form, "branch", branchName, true);
          }
  
          addFormParam(form, "encoding", file.getEncoding(), false);
  
          // Cannot use addFormParam() as it does not accept an empty or whitespace only string
          String content = file.getContent();
          if (content == null) {
              throw new IllegalArgumentException("content cannot be null");
          }
          form.param("content", content);
  
          addFormParam(form, "commit_message", commitMessage, true);
          return (form);
      }