def METHOD_NAME(self, *, note_may_exist=False):
    if self.event.is_locked:
        return
    if self.can_edit_note(session.user) and (note_may_exist or not self.has_note):
        yield 'notes_edit'
    if self.can_edit(session.user):
        yield 'subcontribution_edit'
    if self.can_manage_attachments(session.user):
        yield 'attachments_edit'