def METHOD_NAME(
    self,
) -> typing.Tuple[typing.Optional["Environment"], typing.Optional["Project"]]:
    environment, project = self._get_environment(), self._get_project()
    if not (environment or project):
        raise RuntimeError(
            "One of _get_environment() or _get_project() must "
            "be implemented and return a non-null value"
        )
    return environment, project