convertErrorSeverity method
Convert the error severity
from the 'analyzer' package to an analysis
error severity defined by the plugin API.
Implementation
plugin.AnalysisErrorSeverity convertErrorSeverity(
analyzer.DiagnosticSeverity severity,
) => plugin.AnalysisErrorSeverity.values.byName(severity.name);