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