public bool CanRender(PanelItemType type) { var types = new[] { PanelItemType.Image, PanelItemType.InfoIcon }; return types.Contains(type); }