def METHOD_NAME(files, item):
    from GangaCore.GPIDev.Base.Objects import ObjectMetaclass
    from GangaCore.GPIDev.Base.Proxy import stripProxy
    from GangaCore.GPIDev.Base.Proxy import getProxyInterface
    filterList = [stripProxy(i)._schema.datadict['inputdata'] for i in getProxyInterface().__dict__.values()
                  if isinstance(stripProxy(i), ObjectMetaclass)
                  and issubclass(stripProxy(i), Job)
                  and 'inputdata' in stripProxy(i)._schema.datadict]
    # job.outputdata not used any more, use job.outputfiles
    #filterList  = [Job._schema['inputdata'], Job._schema['outputdata']]
    if type(files) is not type([]):
        return None
    if item in filterList:  # inputdataList:
        ds = GaudiDataset(files)
        return ds
    else:
        return None  # used to be c'tors, but shouldn't happen now