code: public Snippet createSnippet(Object projectIdOrPath, String title, String filename, String description,
              String code, Visibility visibility) throws GitLabApiException {
  
          GitLabApiForm formData = new GitLabApiForm()
                  .withParam("title", title, true)
                  .withParam("file_name", filename, true)
                  .withParam("description", description)
                  .withParam("code", code, true)
                  .withParam("visibility", visibility, true);
  
          Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "snippets");
          return (response.readEntity(Snippet.class));
      }
docs: Creates a new project snippet. The user must have permission to create new snippets.
  
  <pre><code>POST /projects/:id/snippets</code></pre>
  
  @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
  @param title the title of a snippet, required
  @param filename the name of a snippet file, required
  @param description the description of a snippet, optional
  @param code the content of a snippet, required
  @param visibility the snippet's visibility, required
  @return a Snippet instance with info on the created snippet
  @throws GitLabApiException if any exception occurs