'Factory method that creates an instance of some class derived from
Patch
Args:
pkg: package that needs to be patched
path_or_url: path or url where the patch is found
level: patch level
Returns:
instance of some Patch class'

@staticmethod
def create(pkg, path_or_url, level, **kwargs):

    if ('://' in path_or_url):
        return UrlPatch(pkg, path_or_url, level, **kwargs)
    return FilePatch(pkg, path_or_url, level)
