async def METHOD_NAME(
    request: InferScalaPluginDependenciesRequest,
) -> InferredDependencies:
    """Adds dependencies on plugins for scala source files, so that they get included in the
    target's resolve."""
    wrapped_target = await Get(
        WrappedTarget,
        WrappedTargetRequest(request.field_set.address, description_of_origin="<infallible>"),
    )
    target = wrapped_target.target
    scala_plugins = await Get(
        ScalaPluginTargetsForTarget, ScalaPluginsForTargetWithoutResolveRequest(target)
    )
    plugin_addresses = [target.address for target in scala_plugins.artifacts]
    return InferredDependencies(plugin_addresses)