code: public BoxCollaboration.Info collaborate(String email, BoxCollaboration.Role role,
                                               Boolean notify, Boolean canViewPath) {
          JsonObject accessibleByField = new JsonObject();
          accessibleByField.add("login", email);
          accessibleByField.add("type", "user");
  
          return this.collaborate(accessibleByField, role, notify, canViewPath);
      }
docs: Adds a collaborator to this folder. An email will be sent to the collaborator if they don't already have a Box
  account.
  
  @param email       the email address of the collaborator to add.
  @param role        the role of the collaborator.
  @param notify      the user/group should receive email notification of the collaboration or not.
  @param canViewPath the view path collaboration feature is enabled or not.
  View path collaborations allow the invitee to see the entire ancestral path to the associated
  folder. The user will not gain privileges in any ancestral folder.
  @return info about the new collaboration.