def METHOD_NAME(self, project_id: int, annotation_type: str = None):
    """
    Get all task annotations for a project
    ---
    tags:
        - annotations
    produces:
        - application/json
    parameters:
        - name: project_id
          in: path
          description: The ID of the project
          required: true
          type: integer
        - name: annotation_type
          in: path
          description: The type of annotation to fetch
          required: false
          type: integer
    responses:
        200:
            description: Project Annotations
        404:
            description: Project or annotations not found
        500:
            description: Internal Server Error
    """
    ProjectService.exists(project_id)
    if annotation_type:
        annotations = TaskAnnotation.get_task_annotations_by_project_id_type(
            project_id, annotation_type
        )
    else:
        annotations = TaskAnnotation.get_task_annotations_by_project_id(project_id)
    return annotations.to_primitive(), 200