def METHOD_NAME(self, api_identifier: str) -> Optional[Path]:
    api_resource = get_resource_by_id(self._stacks, ResourceIdentifier(api_identifier))
    if not api_resource:
        return None
    return get_definition_path(
        api_resource,
        self._api_identifier,
        self._build_context.use_base_dir,
        self._build_context.base_dir,
        self._stacks,
    )