@staticmethod<EOL><INDENT>def create(obj: PersistedObject, obj_type: Type[T], types_supported: Iterable[str]):<DEDENT>
<EOL>msg = str(obj) + '<STR_LIT>' + get_pretty_type_str(obj_type) + '<STR_LIT>''<STR_LIT>' + obj.get_pretty_file_ext() + '<STR_LIT>'<EOL>if types_supported is not None and len(types_supported) > <NUM_LIT:0>:<EOL><INDENT>msg += '<STR_LIT>''<STR_LIT>' + str(types_supported) + '<STR_LIT>'+ '<STR_LIT>' + get_pretty_type_str(obj_type)+ '<STR_LIT>' + obj.get_pretty_file_ext() + '<STR_LIT>'+ '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>e = NoParserFoundForObjectType(msg)<EOL>e.types_supported = types_supported<EOL>return e<EOL>
Helper method provided because we actually can't put that in the constructor, it creates a bug in Nose tests
https://github.com/nose-devs/nose/issues/725

:param obj:
:param obj_type:
:param types_supported:
:return: