public static void WriteToSonarLintOutputPane(IServiceProvider serviceProvider, string messageFormat, params object[] args)
{
if (serviceProvider == null)
{
throw new ArgumentNullException(nameof(serviceProvider));
}
if (messageFormat == null)
{
throw new ArgumentNullException(nameof(messageFormat));
}
IVsOutputWindowPane sonarLintPane = GetOrCreateSonarLintOutputPane(serviceProvider);
if (sonarLintPane != null)
{
WriteLineToPane(sonarLintPane, messageFormat, args);
}
}