public static WpfBrush GetBrush(this IEditorFormatMap map, string formatName, string resourceId = EditorFormatDefinition.ForegroundBrushId) { return(map.Get <WpfBrush>(formatName, resourceId)); }