class DriveHelper {

    public String createFolderInDrive(@NonNull String folderName,
                                      @Nullable String parentId)
            throws IOException {
        com.google.api.services.drive.model.File fileMetadata;

        //creating a new folder object using the data
        fileMetadata = createNewFile(folderName, FOLDER_MIME_TYPE, parentId);

        // make api call using drive service to create the folder on google drive
        String newFolderId = driveService.createFile(fileMetadata, "id");

        //adding the permissions to folder
        setSharingPermissions(newFolderId);

        return newFolderId;
    }

      DriveHelper(@NonNull GoogleAccountCredential credential,
                @NonNull HttpTransport transport,
                @NonNull JsonFactory jsonFactory);
      DriveHelper(DriveService driveService);

}