code: protected <P extends ParsedResume> P addFileThenHandleParseResume(Class<? extends FileEntity> type, Integer entityId,
                                                                      MultipartFile multipartFile, String externalId, FileParams fileParams, ResumeFileParseParams params) {
          FileWrapper fileWrapper = handleAddFileWithMultipartFile(type, entityId, multipartFile, externalId, fileParams, true);
          P parsedResume = this.handleParseResumeFile(multipartFile, params);
          if (!parsedResume.isError()) {
              parsedResume.setFileWrapper(fileWrapper);
          }
  
          return parsedResume;
  
      }
docs: Makes the api call to both parse the resume and then attach the file. File is only attached if the resume parse was successful.
  
  @param type
  @param entityId
  @param multipartFile
  @param externalId
  @param fileParams
  @param params
  @return