convertElementKind method
Convert the element kind from the 'analyzer' package to an element kind
defined by the plugin API.
This method does not take into account that an instance of ClassElement
can be an enum and an instance of FieldElement can be an enum constant.
Use _convertElementToElementKind where possible.
Implementation
// TODO(srawlins): Deprecate this.
plugin.ElementKind convertElementKind(analyzer.ElementKind kind) =>
kind.toPluginElementKind;