public override object ProvideValue(IServiceProvider serviceProvider) { return instance ?? (instance = new ConvertLegendLocationToAlignment()); }