def METHOD_NAME(self, uri: str):
    """
    Adjust base path for every new uri loaded.
    Example runs:
        - file:///schemas/air_v48_0/Air.wsdl -> file:///schemas/air_v48_0
        - file:///schemas/common_v48_0/CommonReqRsp.xsd -> file:///schemas
    """
    if not self.base_path:
        self.base_path = Path(uri).parent
        logger.info("Setting base path to %s", self.base_path)
    else:
        common_path = os.path.commonpath((str(self.base_path) or "", uri))
        if common_path:
            common_path_path = Path(common_path)
            if common_path_path < self.base_path:
                self.base_path = Path(common_path)
                logger.info("Adjusting base path to %s", self.base_path)