def METHOD_NAME(settings: dict) -> Union[str, None]:
    """Get OpenPype path from global settings.
    Args:
        settings (dict): mongodb url.
    Returns:
        path to OpenPype or None if not found
    """
    paths = (
        settings
        .get("openpype_path", {})
        .get(platform.system().lower())
    ) or []
    # For cases when `openpype_path` is a single path
    if paths and isinstance(paths, str):
        paths = [paths]
    return next((path for path in paths if os.path.exists(path)), None)