from typing import Optional
from pathlib import Path


def _get_optional_path_from_string(path_string: Optional[str]) -> Optional[Path]:
    """
    Convert a string path into a Path instance and resolve it to an absolute path.

    :param path_string: Path string to convert.
    :return: Path instance or None (if empty path string).
    """
    if path_string is None or path_string.strip() == "":
        return None
    else:
        return Path(path_string).resolve()