def METHOD_NAME(potential_url: str) -> Optional[ParseResult]:
    # Remove trailing '/' to ensure parsing works as expected.
    potential_url = potential_url.rstrip("/")
    # transform SSH URL
    if "@" in potential_url:
        split = potential_url.split("@")
        if len(split) == 2:
            potential_url = "https://" + split[1]
        else:
            # more @s ?
            return None
    # make it parsable by urlparse if it doesn't contain scheme
    if not potential_url.startswith(
        ("http://", "https://", "git://", "git+https://")
    ):
        potential_url = "https://" + potential_url
    return urlparse(potential_url)