@staticmethod<EOL><INDENT>def import_participant_element(diagram_graph, participants_dictionary, participant_element):<DEDENT>
participant_id = participant_element.getAttribute(consts.Consts.id)<EOL>name = participant_element.getAttribute(consts.Consts.name)<EOL>process_ref = participant_element.getAttribute(consts.Consts.process_ref)<EOL>if participant_element.getAttribute(consts.Consts.process_ref) == '<STR_LIT>':<EOL><INDENT>diagram_graph.add_node(participant_id)<EOL>diagram_graph.node[participant_id][consts.Consts.type] = consts.Consts.participant<EOL>diagram_graph.node[participant_id][consts.Consts.process] = participant_id<EOL><DEDENT>participants_dictionary[participant_id] = {consts.Consts.name: name, consts.Consts.process_ref: process_ref}<EOL>
Adds 'participant' element to the collaboration dictionary.

:param diagram_graph: NetworkX graph representing a BPMN process diagram,
:param participants_dictionary: dictionary with participant element attributes. Key is participant ID, value
   is a dictionary of participant attributes,
:param participant_element: object representing a BPMN XML 'participant' element.