def should_add_vcs_url_prefix(cls, remote_url):
        # type: (str) -> bool
        """
        Return whether the vcs prefix (e.g. "git+") should be added to a
        repository's remote url when used in a requirement.
        """
        return not remote_url.lower().startswith('{}:'.format(cls.name))

        Return whether the vcs prefix (e.g. "git+") should be added to a
        repository's remote url when used in a requirement.
        
product/gradle-plugin/src/main/python/pip/_internal/vcs/versioncontrol.py