@staticmethod<EOL><INDENT>def create(obj: PersistedObject, obj_type: Type[T], extensions_supported: Iterable[str]):<DEDENT>
<EOL>msg = "<STR_LIT>""<STR_LIT>""<STR_LIT>".format(obj=obj, typ=get_pretty_type_str(obj_type), ext=obj.get_pretty_file_ext())<EOL>if extensions_supported is not None and len(extensions_supported) > <NUM_LIT:0>:<EOL><INDENT>msg += "<STR_LIT>""<STR_LIT>""<STR_LIT>""<STR_LIT>""<STR_LIT>".format(exts=extensions_supported, typ=get_pretty_type_str(obj_type))<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>e = NoParserFoundForObjectExt(msg)<EOL>e.extensions_supported = extensions_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 extensions_supported:
:return: