<PackageReference Include="Castle.Windsor" Version="5.1.0" />

IUsingContainerAsServiceLocatorDiagnostic

Detects components that are not extending Windsor's infrastructure yet depend on the container which usually means they use the container as service locator which is a bad practice and should be avoided.
using Castle.MicroKernel; namespace Castle.Windsor.Diagnostics { public interface IUsingContainerAsServiceLocatorDiagnostic : IDiagnostic<IHandler[]> { } }