from pathlib import Path
from typing import Dict


def insert_high_priority(value: Path, fpaths: Dict[int, Path]) -> Dict[int, Path]:
    """Adds a high-priority file path to ``fpaths``."""
    max_priority = max(fpaths.keys())
    max_priority += 1
    fpaths[max_priority] = value
    return fpaths